@hono/node-server is vulnerable to Missing Origin Validation in WebSockets
54
CVE Score
Medium
Missing Origin Validation in WebSockets
For WebSocket upgrades, @hono/node-server treated a request-target starting with // as a host, so applications checking Origin against c.req.url could accept a cross-site connection. This mattered when an application used upgradeWebSocket and validated the origin against c.req.url or otherwise trusted its host; ordinary HTTP requests were unaffected. A page on another site could then use a victim’s cookies to read and send WebSocket messages. The fix used the Host header for upgrades and treated the request-target only as the path.
Upgrade the @hono/node-server package to 2.1.6 or later.
You are affected if you are using a version that falls within the vulnerable range of @hono/node-server.
2.0.0 - 2.1.5
Fixed in 2.1.6@hono/node-server is vulnerable to Missing Origin Validation in WebSockets in versions 2.0.0 - 2.1.5.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.