CVE-2026-118659

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

Published Oct 28, 2026 CVSS 3.1 · 7.5 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.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.

Analysis

AI-generated

Technical impact

The vulnerable ServerRendererServer accepts unauthenticated HTTP/2 requests and resolves the attacker‑controlled :path value against its internal targetOrigin without validating the resulting URL. An attacker can craft a protocol‑relative path that redirects the fetch to any HTTP or HTTPS endpoint the server can reach. The server then proxies the fetched response headers and body back to the requester, effectively turning the server into an open proxy. This allows external actors to read internal network resources, enumerate internal services, and potentially pierce internal firewalls.

Affected Systems

The affected product is Happy DOM’s server‑renderer package, produced by the capricorn86 project. All releases prior to version 21.0.2 are vulnerable. Upgrading to version 21.0.2 or newer removes the flaw.

Risk and Exploitability

The vulnerability rates a CVSS score of 7.5, classifying it as high severity. No EPSS score is reported, but the lack of restriction on outgoing requests suggests a non‑negligible risk of exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Attackers can exploit it by sending a specially crafted HTTP/2 request to the server‑renderer endpoint, using a protocol‑relative path to direct the server to contact arbitrary external or internal hosts.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Happy DOM library to version 21.0.2 or later to apply the vendor‑provided fix.
  • If an immediate upgrade is not possible, configure network controls such as a firewall or reverse proxy to block the happy‑dom server‑renderer from making outbound connections to untrusted hosts, or enforce origin validation within the application to ensure fetches remain inside the trusted targetOrigin.
  • Review the deployment configuration to ensure that the server‑renderer endpoint is not exposed to unauthenticated clients; consider adding authentication, rate limiting, or IP restrictions to mitigate accidental or malicious use.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', '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.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.
Title @happy-dom/server-renderer: ServerRendererServer Target-Origin Bypass SSRF / Open Proxy
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/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, 6:27 PM
Reserved
Oct 28, 2026, 5:25 PM
Status
Awaiting Analysis
Published
Oct 28, 2026, 9:16 PM
Modified
Oct 29, 2026, 7:17 PM
Severity
Moderate
Public date
Oct 28, 2026, 8:20 PM