CVE-2026-126344 Cross-site request forgery in node-server
A malicious page can open a WebSocket with a victim's cookies and read or send messages in Hono apps that trust the WebSocket host.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Harmful if only installed
- No
- Needs a specific call
- Yes
- Fix
- None listed
What is CVE-2026-126344?
CVE-2026-126344 is a medium-severity cross-site request forgery vulnerability in honojs node-server, published on 12 Nov 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-1385
Which versions are affected by CVE-2026-126344?
An affected version is only exploitable if your software calls upgradeWebSocket or csrf(). Many projects that include it are not exposed.
How do I fix CVE-2026-126344?
No fix has been published for CVE-2026-126344 yet. Limit exposure of the affected software until one is available.
Upgrade, and require an anti-forgery token on every request that changes something. More about Cross-site request forgery.
Is CVE-2026-126344 being exploited?
There is no known exploitation of CVE-2026-126344 in the wild and no public exploit code.
Sources
Also known as GHSA-7v5p-43qr-wch5.