9.4

CVE-2025-62410: --disallow-code-generation-from-strings is not sufficient for isolating untrusted JavaScript in happy-dom

Deferred
AliasesGHSA-qpm2-6cq5-7pq5
Published 15-10-2025Last modified 15-10-2025

Vulnerability summary

CVE-2025-62410 is a critical (CVSS 9.4) vulnerability in capricorn86 happy-dom. EPSS estimates a 0.38% chance of exploitation in the next 30 days, higher than 33.8% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 9.4 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
9.4/10
010
Critical · v4.0 (CVE.org)
EPSS score
0.38%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 15-10-2025
    PublishedVulnerability first disclosed.
  2. 15-10-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.38%

Chance of exploitation in the next 30 days

Percentile

34%

Versus all other CVEs

30-day change

Increase +0.02 pp

From 0.36% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Capricorn861 product
Npm1 product
  • happy-dom≥ 19.0.0, < 20.0.2

2 vendors · 2 products

References

4 links