A plain-language summary of this CVE is being written; the description below is the NVD's own text.
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.
Affected products
The NVD has not attached product data to this record yet; the description names what is affected.
Weakness type
References
- github.com /honojs/node-server/commit/cfaa79f76dbb0fe9f539438c0c585d94…
- github.com /honojs/node-server/releases/tag/v2.1.6
- github.com /honojs/node-server/security/advisories/GHSA-7v5p-43qr-wch5
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning