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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-12 · Modified: 2026-11-13
- Record: https://cvemate.com/vulnerability/CVE-2026-126344 · JSON: https://cvemate.com/vulnerability/CVE-2026-126344/json

## Description

```text
@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.
```

## Signals

- CVSS: 5.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- EPSS: 0.155%, percentile 4.812%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## 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>

---

Data as of 2026-12-05T07:58:37.117Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
