Node server: Node.js Adapter for Hono: Unauthenticated memory-leak DoS via aborted WebSocket handshake
A vulnerability in the @hono/node-server WebSocket adapter allows unauthenticated attackers to cause a memory leak by sending WebSocket upgrade requests with missing or malformed Sec-WebSocket-Key headers. The server retains the request in memory without cleanup, leading to gradual memory exhaustion and denial of service. This affects versions 2.0.0 up to but not including 2.0.10. There is no impact on confidentiality or integrity, only availability.
AI Analysis
Technical Summary
The @hono/node-server WebSocket helper retains IncomingMessage objects in an internal map when a WebSocket upgrade request has a missing or malformed Sec-WebSocket-Key header. Because the handshake is aborted without emitting a connection event, the cleanup routines do not run, causing the memory to leak indefinitely. Since the upgradeWebSocket route is accessible without authentication, an attacker can flood it with such malformed requests to exhaust server memory and cause a denial of service. This vulnerability affects versions >=2.0.0 and <2.0.10.
Potential Impact
An unauthenticated attacker can cause unbounded memory growth on any public upgradeWebSocket route by sending malformed WebSocket upgrade requests, leading to denial of service due to memory exhaustion. There is no impact on data confidentiality or integrity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, consider implementing request validation or filtering at a proxy level, but note that simply checking for the presence of the Sec-WebSocket-Key header is insufficient to prevent the leak. Monitor for updates from the vendor regarding an official fix.
Node server: Node.js Adapter for Hono: Unauthenticated memory-leak DoS via aborted WebSocket handshake
Description
A vulnerability in the @hono/node-server WebSocket adapter allows unauthenticated attackers to cause a memory leak by sending WebSocket upgrade requests with missing or malformed Sec-WebSocket-Key headers. The server retains the request in memory without cleanup, leading to gradual memory exhaustion and denial of service. This affects versions 2.0.0 up to but not including 2.0.10. There is no impact on confidentiality or integrity, only availability.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The @hono/node-server WebSocket helper retains IncomingMessage objects in an internal map when a WebSocket upgrade request has a missing or malformed Sec-WebSocket-Key header. Because the handshake is aborted without emitting a connection event, the cleanup routines do not run, causing the memory to leak indefinitely. Since the upgradeWebSocket route is accessible without authentication, an attacker can flood it with such malformed requests to exhaust server memory and cause a denial of service. This vulnerability affects versions >=2.0.0 and <2.0.10.
Potential Impact
An unauthenticated attacker can cause unbounded memory growth on any public upgradeWebSocket route by sending malformed WebSocket upgrade requests, leading to denial of service due to memory exhaustion. There is no impact on data confidentiality or integrity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, consider implementing request validation or filtering at a proxy level, but note that simply checking for the presence of the Sec-WebSocket-Key header is insufficient to prevent the leak. Monitor for updates from the vendor regarding an official fix.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-9mqv-5hh9-4cgg
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a600a9d9c2644c7f8fdeeca
Added to database: 07/22/2026, 00:11:09 UTC
Last enriched: 07/22/2026, 00:37:29 UTC
Last updated: 07/22/2026, 04:03:15 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.