@happy-dom/server-renderer is vulnerable to Server-Side Request Forgery (SSRF)
75
CVE Score
High
Server-Side Request Forgery (SSRF)
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.
Upgrade the @happy-dom/server-renderer package to version 21.0.2 or later.
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.
19.0.0 - 21.0.1
Fixed in 21.0.2@happy-dom/server-renderer is vulnerable to Server-Side Request Forgery (SSRF) in versions 19.0.0 - 21.0.1.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.