Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessVictim visits attacker-controlled page
-
DeliveryScript opens WebSocket to //attacker.example/ws
-
ExploitRequest-target host replaces c.req.url host
-
ExecutionOrigin check compares attacker origin to itself and passes
-
PersistAuthenticated cross-site WebSocket established
-
ImpactRead and send messages with victim cookies
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Hardware safety mechanism
|
| Exploitation Conditions | Exploitable only when the application uses upgradeWebSocket from @hono/node-server (versions 2.0.0 through 2.1.5) AND validates the Origin header against the origin of c.req.url - for example via csrf() - or otherwise trusts the host in c.req.url on a WebSocket route. The attacker needs no credentials, but a cookie-authenticated victim must be lured into visiting an attacker-controlled web page (UI:R), and the attack is limited to that single WebSocket connection. Ordinary HTTP requests are explicitly not affected, and apps that do not expose WebSocket routes or do not trust c.req.url's host are not exploitable. Non-default: the vulnerable Origin-validation pattern must be present in application code. |
| Impact | This is a genuine but moderate-priority issue, consistent with its CVSS 5.4 (Medium). The vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N shows network reach and low complexity with no attacker privileges, but requires user interaction - the victim must visit an attacker-controlled page - and yields only limited confidentiality and integrity impact (reading and sending messages on one WebSocket) with no availability impact. Crucially, exploitability is gated by application code: only apps that call upgradeWebSocket and validate the Origin against the origin of c.req.url (the pattern csrf() implements) are affected, so the real-world exposure is a subset of node-server deployments, not all of them. No EPSS score was supplied and the vulnerability is not in CISA KEV, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_month' (not act_now/emergency), aligning with a patch-on-normal-cadence posture. No standalone exploit was provided, though the vendor fix commit ships a regression test that reproduces the // request-target bypass, so the technique is public and easily reconstructed. Net: a legitimate cross-site WebSocket hijacking flaw worth patching promptly for affected apps, not a drop-everything emergency. |
| Exploit ScenarioDerived | A logged-in user with an active cookie session on a vulnerable Hono-on-Node app visits a malicious web page. Script on that page opens a WebSocket to the app using a path beginning with // (e.g. //attacker.example/ws); because node-server resolves the raw request-target against the Host header, c.req.url's host is replaced with the attacker's while routing still hits /ws, so the app's Origin-vs-c.req.url check (including csrf()) compares the attacker origin to itself and accepts the connection. The attacker's page can then read and send messages over the authenticated socket. No weaponized exploit is published, but the fix commit includes a reproducer test demonstrating the bypass. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
Cross-site WebSocket hijacking in @hono/node-server 2.0.0 through 2.1.5 lets a malicious site open an authenticated WebSocket to a victim application when that application validates the Origin header against the origin of c.req.url, because a //-prefixed upgrade request-target rewrites the URL host. Only applications using upgradeWebSocket and trusting c.req.url's host-such as Origin checks implemented with csrf()-are affected; ordinary HTTP requests are not. This is a moderate-priority issue (CVSS 5.4 Medium) with no public exploit identified at time of analysis, and the vendor fixed it in 2.1.6.
RemediationAI
Upgrade @hono/node-server to 2.1.6 or later; the vendor-released patch is 2.1.6 and is documented in the GitHub advisory (https://github.com/honojs/node-server/security/advisories/GHSA-7v5p-43qr-wch5), with the fix commit at https://github.com/honojs/node-server/commit/cfaa79f76dbb0fe9f539438c0c585d94ed7cd01f and release at https://github.com/honojs/node-server/releases/tag/v2.1.6. The fix takes the host of upgrade requests from the Host header and uses the request-target only as the path, as for ordinary requests, while still accepting validated absolute-form targets. If immediate upgrade is not possible, remove reliance on c.req.url's host for WebSocket Origin validation: compare the Origin header against a configured trusted origin (or a Host-header-derived origin) rather than the origin of c.req.url, since the vulnerable pattern is the condition for exploitability. No separate workaround is documented in the supplied sources, so upgrading remains the complete fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is in the Node.js adapter's WebSocket upgrade handling. For an upgrade request, @hono/node-server resolved the raw request-target against a base URL constructed from the Host header. A target beginning with // (for example //attacker.example/ws) is parsed by the WHATWG URL parser as a network-path reference, so the parser replaces the host and c.req.url becomes http://attacker.example/ws while routing still uses /ws. Applications that compare the browser-supplied Origin with new URL(c.req.url).origin therefore compare the attacker's origin with itself and accept the upgrade, enabling cross-site WebSocket hijacking. CWE-1385 (Missing Origin Validation in WebSockets) captures this class: the server fails to validate the WebSocket handshake Origin against the actual serving origin. The CPE cpe:2.3:a:honojs:node-server identifies the npm package; only WebSocket upgrade requests are affected, and the trigger is specifically a //-prefixed request-target plus application code that trusts c.req.url's host. The fix switches to buildUrl so the Host header supplies the host and the request-target is used only as the path, while still accepting validated absolute-form targets.
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Remote, low-complexity, no attacker auth (PR:N), but victim must visit a malicious page (UI:R); impact limited to reading/sending messages on one socket, so C:L/I:L/A:N.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
@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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-124722
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB