Security mailing lists by PureSourceCode

CVE-2025-62410

CRITICAL 9.4CVSS 4.0

happy-dom's `--disallow-code-generation-from-strings` is not sufficient for isolating untrusted JavaScript

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.

Published
15 Oct 2025
Last modified
8 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-1321
Also known as
GHSA-qpm2-6cq5-7pq5
Sources
NVDJSONOSV GHSA-qpm2-6cq5-7pq5JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 CRITICAL 9.4 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm happy-dom >= 19.0.0, < 20.0.2 20.0.2

References

History

  • 25 Nov 2026 20:59 UTC · NVD: first stored (published 15 Oct 2025)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 15 Oct 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.