CVE-2024-51757 Fixes security vulnerability that allowed for server side code to be executed by a <script> tag
CriticalCVSS 9.3
EPSS 0.77%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
Description
happy-dom is a JavaScript implementation of a web browser without its graphical user interface. Versions of happy-dom prior to 15.10.2 may execute code on the host via a script tag. This would execute code in the user context of happy-dom. Users are advised to upgrade to version 15.10.2. There are no known workarounds for this vulnerability.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| capricorn86 happy-dom | < 15.10.1; = < 15.10.2 | 15.10.1 | Fixed |
| npm happy-dom(npm) | < 15.10.2 | 15.10.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm happy-dom(npm) | < 15.10.2 | 15.10.2 |
| capricorn86 happy-dom | = < 15.10.2 | No fix listed |
| capricorn86 happy-dom | < 15.10.1 | 15.10.1 |
References
- https://github.com/capricorn86/happy-dom/security/advisories/GHSA-96g7-g7g9-jxw8 vendor-advisory
- https://github.com/capricorn86/happy-dom/issues/1585
- https://github.com/capricorn86/happy-dom/pull/1586 patch
- https://github.com/capricorn86/happy-dom/commit/5ee0b1676d4ce20cc2a70d1c9c8d6f1e3f57efac patch
- https://github.com/capricorn86/happy-dom/commit/d23834c232f1cf5519c9418b073f1dcec6b2f0fd patch
- https://github.com/capricorn86/happy-dom/releases/tag/v15.10.2
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product