CVE-2026-118660

Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTML

Published Oct 28, 2026 CVSS 3.1 · 8.6 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Happy DOM, a headless browser implementation, automatically loads iframe src URLs and link rel="stylesheet" href URLs while parsing untrusted HTML on the server. Because the options disableIframePageLoading and disableCSSFileLoading default to false in versions prior to 21.0.0, an attacker who can supply or influence the HTML that Happy DOM parses can cause the server to send requests to any arbitrary internal or cloud endpoint. The responses from those endpoints may include confidential data, credentials, or expose internal network topology, allowing information disclosure and potential credential theft. The weakness is a classic Server‑Side Request Forgery (CWE‑918).

Affected Systems

The affected product is Happy DOM from the vendor capricorn86. All releases before version 21.0.0 are vulnerable. The issue was fixed in Happy DOM 21.0.0; any installation still running an earlier release should be upgraded.

Risk and Exploitability

The CVSS score of 8.6 places the vulnerability in the High severity range, indicating that exploitation could seriously compromise confidentiality and integrity. The EPSS score is not available, so the current likelihood of exploitation is uncertain, but because the vulnerability can be triggered via any untrusted HTML input, it poses a realistic risk for applications that parse untrusted content server‑side. The vulnerability is not listed in CISA’s KEV catalog as of the latest advisory. Attackers would need to deliver malicious HTML to the application – for example, through a form or API that accepts rich content – and rely on Happy DOM’s default behavior to initiate outbound requests without restricting the target domain.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Happy DOM to version 21.0.0 or later.
  • If upgrade is not immediately possible, set disableIframePageLoading and disableCSSFileLoading to true to prevent automatic loading of iframe and stylesheet resources.
  • Validate or sanitize any untrusted HTML before parsing, or remove such parsing from trusted code paths.

Generated by OpenCVE AI on October 28, 2026 at 21:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-c8p4-j97h-3vg8 Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTML
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Capricorn86
Capricorn86 happy-dom
Vendors & Products Capricorn86
Capricorn86 happy-dom
Type Values Removed Values Added
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.
Title Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTML
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N'}

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 29, 2026, 5:23 PM
Reserved
Oct 28, 2026, 5:25 PM
Status
Awaiting Analysis
Published
Oct 28, 2026, 9:16 PM
Modified
Oct 29, 2026, 6:17 PM
Severity
Moderate
Public date
Oct 28, 2026, 8:23 PM