CVE-2026-126344
Received Received - Intake

WebSocket Origin Spoofing in Hono Node Server

Vulnerability report for CVE-2026-126344, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-12

Last updated on: 2026-11-12

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-12
Last Modified
2026-11-12
Generated
2026-11-13
AI Q&A
2026-11-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
hono node_server 2.1.6

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1385 The product uses a WebSocket, but it does not properly verify that the source of data or communication is valid.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The vulnerability in @hono/node-server (versions 2.0.0 to 2.1.6) involves a WebSocket upgrade flaw where the Host header manipulates the request URL parsing. This causes the application to incorrectly validate the Origin header against a manipulated URL, allowing attackers to bypass origin checks and establish WebSocket connections with victim cookies.

Detection Guidance

Check if your system uses @hono/node-server versions between 2.0.0 and 2.1.6. Inspect package.json or run npm list @hono/node-server to verify the installed version. Monitor WebSocket connections for unexpected origins or hosts.

Impact Analysis

If you use @hono/node-server in versions 2.0.0 to 2.1.6 with upgradeWebSocket and trust the host in c.req.url, attackers could open WebSocket connections from malicious sites. This may lead to unauthorized data access, message interception, or session hijacking using victim cookies.

Mitigation Strategies

Upgrade @hono/node-server to version 2.1.6 or later immediately. Review WebSocket connection logic to ensure Origin header checks are not bypassed. Disable WebSocket upgrades if not required.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-126344. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...