# CVE-2026-126344: @hono/node-server: WebSocket upgrade request-target starting with `//` replaces the host in `c.req.url`, bypassing `Origin` checks

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/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.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-11-12T21:28:21.053Z
- Modified: 2026-11-13T02:18:51.770Z
- Weaknesses: CWE-1385
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

@hono/node-server allows running the Hono application on Node.js. From 2.0.0 until 2.1.6, the WebSocket upgrade path resolves a raw request-target beginning with // against a base URL built from the Host header, causing the WHATWG URL parser to treat the request-target as a network-path reference and replace the host in c.req.url. Routing still uses the local WebSocket path, so an application that compares the Origin header with the origin of c.req.url, including checks implemented with csrf(), compares an attacker's origin with itself and accepts the connection. A page on another site can consequently open a WebSocket with the victim's cookies and read and send messages when the application uses upgradeWebSocket and trusts the host in c.req.url. Ordinary HTTP requests are not affected. This issue is fixed in version 2.1.6.

(As written by CVE List.)

## Affected

- honojs node-server: >= 2.0.0, < 2.1.6

## References

- <https://github.com/honojs/node-server/security/advisories/GHSA-7v5p-43qr-wch5>
- <https://github.com/honojs/node-server/commit/cfaa79f76dbb0fe9f539438c0c585d94ed7cd01f>
- <https://github.com/honojs/node-server/releases/tag/v2.1.6>

## Sources

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

---

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