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.
Severity (CVSS)
| Base score | 5.4 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| Provided by | CNA |
Weaknesses
- CWE-1385 — CWE-1385: Missing Origin Validation in WebSockets
Affected products
| Vendor | Product | Versions |
|---|---|---|
| honojs | node-server | >= 2.0.0, < 2.1.6 [affected] |
References
- https://github.com/honojs/node-server/security/advisories/GHSA-7v5p-43qr-wch5 (x_refsource_CONFIRM)
- https://github.com/honojs/node-server/commit/cfaa79f76dbb0fe9f539438c0c585d94ed7cd01f (x_refsource_MISC)
- https://github.com/honojs/node-server/releases/tag/v2.1.6 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 13 Nov 2026 08:05 UTC.