CVE-2025-62410 Details
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.
A vulnerability in Happy-Dom versions prior to 20.0.2 allows for prototype pollution, which can be exploited to hijack important references such as 'process' or manipulate control flow by altering checks of undefined properties. This issue arises because untrusted JavaScript and the application run in the same isolate/process, failing to properly isolate untrusted code. The vulnerability could be exploited to execute arbitrary commands by, for example, abusing the 'spawn' function. The root cause is an incomplete fix for a previous vulnerability, CVE-2025-61927.
Users are advised to update to Happy-Dom version 20.0.2 or later, and to freeze builtins in the global scope to defend against similar attacks. For enhanced security, consider migrating to 'isolated-vm'.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 15, 2025CISA-ADP
Assessed Oct 15, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/capricorn86/happy-dom/commit/f4bd4ebe3fe5abd2be2bcea1c07043c8b0b70eea | [email protected] | Source CodeVendor |
| https://github.com/capricorn86/happy-dom/security/advisories/GHSA-qpm2-6cq5-7pq5 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| capricorn86 happy-dom | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 8, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 15, 2025 | New CVE Received | [email protected] |
Volerion