@anephenix/hub: Unauthenticated WebSocket RPC Waiter Resource Exhaustion
Affects @anephenix/hubSource GCVE Database
- Patch
- Available – fixed in 0.2.16
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HWhat to do
AI-suggested
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, mitigate by limiting the number of concurrent WebSocket connections or implementing external rate limiting and connection timeouts to prevent resource exhaustion. Monitor for updates from the vendor regarding an official patch.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@anephenix/hub | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
@anephenix/hub before version 0.2.16 contains an unauthenticated denial-of-service vulnerability. The server starts a polling loop via setInterval for every incoming WebSocket connection to request a client ID via RPC. If the client never responds, these intervals and pending requests are never cleaned up, even after the socket closes. An attacker can open many WebSocket connections and ignore server RPC messages, causing unbounded accumulation of timers and heap objects. This leads to CPU and memory exhaustion, resulting in denial of service.
Weaknesses
References
- github.com/anephenix/hub/security/advisories/GHSA-g5vv-q72c-7j78 (opens in a new tab)
- github.com/anephenix/hub/commit/67260d2a1407a77f082f02dc9e1f0891222c306d (opens in a new tab)
- github.com/anephenix/hub/commit/931576db3cdbf4f1583bd2c3c8759c4f4e032ab3 (opens in a new tab)
- github.com/anephenix/hub (opens in a new tab)