Capricorn86 happy-dom
Happy 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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 21.0.0
Fixed in 21.0.0
Mitigation
Upgrade happy-dom to 21.0.0 or later.
References
- Vendor advisory github.com/capricorn86/happy-dom/security/advi…
- Patch github.com/capricorn86/happy-dom/pull/2502
- Patch github.com/capricorn86/happy-dom/commit/0a99c7…
1 more
- Release notes github.com/capricorn86/happy-dom/releases/tag/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.