CVE Explorer
CVE-2025-62410
In versions before 20.0.2, it was found that --disallow-code-generation-from-strings is not sufficient for isolating untrusted JavaScript in happy-dom. The untrusted script and the rest of the application still run in the same Isolate/process, so attackers can deploy prototype pollution payloads to hijack important references like "process" in the example below, or to hijack control flow via flipping checks of undefined property. This vulnerability is due to an incomplete fix for CVE-2025-61927.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"happy-dom","vendor":"capricorn86","versions":[{"status":"affected","version":"< 20.0.2"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:c639edad94678f61b94ec5be51fe37c9ce8e56ba24e1547eaeb2b4ad6a7fa187 · sha256:c1d9084317f44533… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":9.4,"baseSeverity":"CRITICAL","privilegesRequired":"LOW","subAvailabilityImpact":"HIGH","subConfidentialityImpact":"HIGH","subIntegrityImpact":"HIGH","userInteraction":"PASSIVE","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:c639edad94678f61b94ec5be51fe37c9ce8e56ba24e1547eaeb2b4ad6a7fa187 · sha256:c1d9084317f44533… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-1321","description":"CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:c639edad94678f61b94ec5be51fe37c9ce8e56ba24e1547eaeb2b4ad6a7fa187 · sha256:c1d9084317f44533… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/capricorn86/happy-dom/commit/f4bd4ebe3fe5abd2be2bcea1c07043c8b0b70eea","tags":["x_refsource_MISC"],"url":"https://github.com/capricorn86/happy-dom/commit/f4bd4ebe3fe5abd2be2bcea1c07043c8b0b70eea"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c639edad94678f61b94ec5be51fe37c9ce8e56ba24e1547eaeb2b4ad6a7fa187 · sha256:c1d9084317f44533… · /containers/cna/references/1
{"name":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-qpm2-6cq5-7pq5","tags":["x_refsource_CONFIRM"],"url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-qpm2-6cq5-7pq5"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c639edad94678f61b94ec5be51fe37c9ce8e56ba24e1547eaeb2b4ad6a7fa187 · sha256:c1d9084317f44533… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.