Skip to main content
VulnerabilityPublished

CVE-2025-62410: capricorn86 happy-dom · Prototype Pollution

Affects capricorn86 happy-domSource CVE Database V5

0
Compare

Mentioned vulnerabilities

Not known to be exploited · CVSS 9.4 Critical : upgrade to 20.0.2 as a priority.

Data as of 22 Nov 2026, 21:14 UTC

CVSS 4.0 base score
9.4Critical
How severe the flaw is on the 0–10 CVSS scale.

Contested

Critical score, yet low EPSS after six months
EPSS
0.3% chance of exploitation in 30 days – higher than 30% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 20.0.2
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 15 Oct 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 22 Nov 2026.

What to do

Upgrade capricorn86 happy-dom to 20.0.2.

Affected software

ProductAffectedFixed in
npmhappy-dompkg:npm/happy-domOther threatsAffected
  • <20.0.2
Fixed in
  • 20.0.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

European organizations should immediately upgrade all instances of happy-dom to version 20.0.2 or later, where the vulnerability is fixed. Additionally, they should audit their use of untrusted JavaScript execution within the same process or isolate to ensure proper sandboxing. Employ strict input validation and content security policies to limit injection of malicious scripts. Consider architectural changes to separate untrusted code execution into distinct processes or containers to prevent prototype pollution from affecting the main application. Implement runtime monitoring and anomaly detection to identify suspicious prototype modifications or unusual process behavior. Regularly review dependency versions and subscribe to security advisories for timely patching. Finally, conduct security testing focused on prototype pollution and code injection vectors in development and staging environments.

Description

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. The vulnerability is fixed in 20.0.2.

References

Community reviews

Loading reviews…