CVE-2026-118659
JSON

7.5high

@happy-dom/server-renderer: ServerRendererServer Target-Origin Bypass SSRF / Open Proxy

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.48% (higher than 43% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. Prior to 21.0.2, the Happy DOM server-renderer package's ServerRendererServer accepts unauthenticated HTTP/2 requests and resolves attacker-controlled :path values against server.targetOrigin in #onIncomingRequest in packages/@happy-dom/server-renderer/src/ServerRendererServer.ts without confirming that the resolved origin remains trusted before calling fetch. A protocol-relative path can change the destination to an arbitrary HTTP or HTTPS endpoint reachable by the server, including local and internal services, and the proxy relays the fetched response headers and body to the requester. This issue is fixed in version 21.0.2.

Affected

Product or packageVersionsReported by
capricorn86 happy-dom< 21.0.2CVE List

Classification

CWE-918

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-118659 changed 2026-10-29CVE Terms of Use
NVDCVE-2026-118659 changed 2026-10-29Public domain