CVE-2026-118660
HIGH 8.6CVSS 3.1Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTML
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. Prior to 21.0.0, Happy DOM loads iframe src URLs and link rel="stylesheet" href URLs by default while parsing untrusted HTML on the server because disableIframePageLoading and disableCSSFileLoading default to false. An attacker who controls parsed HTML can therefore cause server-side requests to arbitrary internal or cloud endpoints without an application opt-in and may expose confidential responses or credentials returned by those endpoints. This issue is fixed in version 21.0.0.
- Published
- 28 Oct 2026
- Last modified
- 29 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-918
- Also known as
- GHSA-c8p4-j97h-3vg8
- Sources
- NVDJSONOSV GHSA-c8p4-j97h-3vg8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | happy-dom | < 21.0.0 | 21.0.0 |
References
- https://github.com/capricorn86/happy-dom/commit/0a99c7525a1d0043e3182843ae33466ab7b19e74 · WEB
- https://github.com/capricorn86/happy-dom/pull/2502 · WEB
- https://github.com/capricorn86/happy-dom/releases/tag/v21.0.0 · WEB
- https://github.com/capricorn86/happy-dom/security/advisories/GHSA-c8p4-j97h-3vg8 · WEB
- https://github.com/capricorn86/happy-dom · PACKAGE
History
- 25 Nov 2026 21:23 UTC · NVD: first stored (published 28 Oct 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 28 Oct 2026)