Server-side Request Forgery (SSRF) Affecting happy-dom package, versions <21.0.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.41% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-HAPPYDOM-21826830
  • published29 Oct 2026
  • disclosed28 Oct 2026
  • creditTharVid

Introduced: 28 Oct 2026

NewCVE-2026-118660  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade happy-dom to version 21.0.0 or higher.

Overview

happy-dom is a Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via automatic loading of external resources in HTMLIFrameElement and HTMLLinkElement. When a document containing an <iframe src="..."> or <link rel="stylesheet" href="..."> element is parsed, happy-dom issues real HTTP requests to the specified URLs without any user opt-in, allowing an attacker who controls the rendered HTML to cause the server running happy-dom to make arbitrary outbound requests - including to internal network endpoints such as cloud metadata services.

CVSS Base Scores

version 4.0
version 3.1