# CVE-2026-118659: @happy-dom/server-renderer: ServerRendererServer Target-Origin Bypass SSRF / Open Proxy

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-28T20:20:29.561Z
- Modified: 2026-10-29T19:17:18.813Z
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- capricorn86 happy-dom: < 21.0.2

## References

- <https://github.com/capricorn86/happy-dom/security/advisories/GHSA-pmf4-3xr3-xjhg> (exploit)
- <https://github.com/capricorn86/happy-dom/pull/2520>
- <https://github.com/capricorn86/happy-dom/commit/1f3ffdf634231361de1a2acb629b4fe8ee1bd85d>
- <https://github.com/capricorn86/happy-dom/releases/tag/v21.0.2>

## Sources

- CVE List: [CVE-2026-118659](https://www.cve.org/CVERecord?id=CVE-2026-118659), CVE Terms of Use, modified 2026-10-29
- NVD: [CVE-2026-118659](https://nvd.nist.gov/vuln/detail/CVE-2026-118659), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-118659 · Whole record: https://cve.day/CVE-2026-118659.json · Rebuilt by cve.day 2026-11-25T22:59:47.690Z
