Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| capricorn86 | happy-dom | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Capricorn86 | Happy-dom |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-6q6h-j7hj-3r64 | Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.661% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Capricorn86 happy Dom
|
|
| CPEs | cpe:2.3:a:capricorn86:happy_dom:*:*:*:*:*:node.js:*:* | |
| Vendors & Products |
Capricorn86 happy Dom
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Capricorn86
Capricorn86 happy-dom |
|
| Vendors & Products |
Capricorn86
Capricorn86 happy-dom |
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-917 | |
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. In versions 15.10.0 through 20.8.7, a code injection vulnerability in `ECMAScriptModuleCompiler` allows an attacker to achieve Remote Code Execution (RCE) by injecting arbitrary JavaScript expressions inside `export { }` declarations in ES module scripts processed by happy-dom. The compiler directly interpolates unsanitized content into generated code as an executable expression, and the quote filter does not strip backticks, allowing template literal-based payloads to bypass sanitization. Version 20.8.8 fixes the issue. | |
| Title | Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code | |
| Weaknesses | CWE-94 | |
| References |
| |
| Metrics |
cvssV3_1
|