Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. happy-dom
  4. ›
  5. CVE-2026-118660

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

October 28, 2026

happy-dom v20.8.9 makes real server-side HTTP requests to arbitrary URLs when parsing HTML containing <iframe> or <link rel="stylesheet"> elements. This behavior is enabled by default (disableIframePageLoading: false, disableCSSFileLoading: false). When an application uses happy-dom to parse untrusted HTML on the server side, an attacker can trigger Server-Side Request Forgery by embedding these elements.

References

  • github.com/advisories/GHSA-c8p4-j97h-3vg8
  • github.com/capricorn86/happy-dom/commit/0a99c7525a1d0043e3182843ae33466ab7b19e74
  • github.com/capricorn86/happy-dom/pull/2502
  • github.com/capricorn86/happy-dom/releases/tag/v21.0.0
  • github.com/capricorn86/happy-dom/security/advisories/GHSA-c8p4-j97h-3vg8
  • nvd.nist.gov/vuln/detail/CVE-2026-118660

Code Behaviors & Features

Detect and mitigate CVE-2026-118660 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 21.0.0

Fixed versions

  • 21.0.0

Solution

Upgrade to version 21.0.0 or above.

Impact 8.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

npm/happy-dom/CVE-2026-118660.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:53 +0000.