# CVE-2026-118660: Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTML

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-10-28T20:23:10.122Z
- Modified: 2026-10-29T18:17:27.943Z
- Also known as: GHSA-c8p4-j97h-3vg8
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- capricorn86 happy-dom: < 21.0.0
- happy-dom (npm): before 21.0.0

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`

## References

- <https://github.com/capricorn86/happy-dom/security/advisories/GHSA-c8p4-j97h-3vg8> (web)
- <https://github.com/capricorn86/happy-dom/pull/2502> (web)
- <https://github.com/capricorn86/happy-dom/commit/0a99c7525a1d0043e3182843ae33466ab7b19e74> (web)
- <https://github.com/capricorn86/happy-dom/releases/tag/v21.0.0> (web)
- <https://github.com/capricorn86/happy-dom> (package)

## Sources

- CVE List: [CVE-2026-118660](https://www.cve.org/CVERecord?id=CVE-2026-118660), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-c8p4-j97h-3vg8](https://github.com/advisories/GHSA-c8p4-j97h-3vg8), CC-BY-4.0, modified 2026-10-28
- NVD: [CVE-2026-118660](https://nvd.nist.gov/vuln/detail/CVE-2026-118660), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-118660 · Whole record: https://cve.day/CVE-2026-118660.json · Rebuilt by cve.day 2026-11-25T22:59:47.691Z
