Skip to main content

@hono/node-server EUVDEUVD-2026-124722

| CVE-2026-126344 MEDIUM
Missing Origin Validation in WebSockets (CWE-1385)
2026-11-12 GitHub_M
5.4
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Victim visits attacker-controlled page
  2. Delivery
    Script opens WebSocket to //attacker.example/ws
  3. Exploit
    Request-target host replaces c.req.url host
  4. Execution
    Origin check compares attacker origin to itself and passes
  5. Persist
    Authenticated cross-site WebSocket established
  6. Impact
    Read 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

node-server 2.0.0, < 2.1.6

Affected Packages

euvd node_server fix: 2.1.6

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

Vendor (GitHub_M) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Nov 12, 2026 - 22:02 EUVD

DescriptionCVE.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

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
popular Hono Node.js adapter, but only WebSocket+Origin-check apps affected
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy