Home › CVE › JavaScript
CVE-2026-126344 — honojs node-server
Summary
@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.
Severity breakdown
Medium · 5.4
An attacker without an account can exploit this over the network if a user is tricked into an action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- yes, someone must click, open or visit something
- Scope
- stays within the vulnerable component
- Impact
- low on confidentiality and integrity, none on availability
Weakness
- CWE-1385: Missing Origin Validation in WebSockets
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| honojs node-server | >= 2.0.0, < 2.1.6 | — |
References by type
Vendor advisories
Patches and fixed releases
Affected
- honojs node-server
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-126344?
@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. Weakness type: Missing Origin Validation in WebSockets (CWE-1385).
How severe is CVE-2026-126344?
CVE-2026-126344 has a CVSS 3.1 base score of 5.4 (medium), from the CNA (github.com). An attacker without an account can exploit this over the network if a user is tricked into an action.
Is CVE-2026-126344 being exploited?
Not as far as is known: CVE-2026-126344 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-126344?
honojs node-server >= 2.0.0, < 2.1.6.
How do I fix CVE-2026-126344?
Apply the update or mitigation in the vendor's advisory, linked on this page under Vendor advisories.