Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Node server: Node.js Adapter for Hono: Unauthenticated memory-leak DoS via aborted WebSocket handshake

0
Medium
Published: 07/21/2026 (07/21/2026, 22:04:27 UTC)
Source: GCVE Database
Product: @hono/node-server

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected software

npmghsa
@hono/node-server
Affected versions
>=2.0.0 <2.0.10

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

AILast updated: 07/22/2026, 00:37:29 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses