Intel

AIKIDO-2026-955899

@happy-dom/server-renderer is vulnerable to Server-Side Request Forgery (SSRF)

CVE-2026-118659Published Oct 31, 2026
October 31, 2026

75

CVE Score

High

Server-Side Request Forgery (SSRF)

Are you affected? Scan for Free

TL;DR

ServerRendererServer.#onIncomingRequest resolves the unauthenticated request path against server.targetOrigin and passes the result to fetch without checking the resolved origin, so untrusted input using a protocol-relative path sends requests to any HTTP(S) endpoint reachable from the server. The fetched response headers and body are relayed back to the requester, exposing internal services. The fix rejects requests whose resolved origin differs from targetOrigin and stops cross-origin redirects.

How do I fix this?

Upgrade the @happy-dom/server-renderer package to version 21.0.2 or later.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and expose ServerRendererServer to network requests with a configured server.targetOrigin.

Versions

19.0.0 - 21.0.1

Fixed in 21.0.2

Background info

@happy-dom/server-renderer is vulnerable to Server-Side Request Forgery (SSRF) in versions 19.0.0 - 21.0.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea