websocket-driver: Memory exhaustion triggered by small fragment frames holding long-lived references to TCP reads
CVE-2026-140000GHSA-j7r2-xppq-m353Published 30 Nov 2026, 21:19 UTC
Real-world risk
3.4/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.5
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.2, StreamReader.read() uses Buffer.slice() for small reads, so small fragmented message frames can retain references to much larger TCP input Buffer objects. Before 0.8.1, unfinished fragments can retain source TCP reads until the message completes or reaches maxLength; in 0.8.1, compaction occurs after 1,000,000 fragments but can still retain up to 1,000,000 TCP inputs. An unauthenticated remote client can exploit this retention to cause substantial memory inflation and potentially exhaust server memory. This issue is fixed in version 0.8.2.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| websocket-driverWidespread | < 0.8.2 | 0.8.2 |
| websocket-driverNiche | < 0.8.2 | 0.8.2 |
What to do
Update to a fixed version: 0.8.2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Denial of serviceCrash or resource exhaustion only | From the CVSS vector | 0.40 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.6% chance of exploitation in 30 days (percentile 51), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together1.000
- Threat T1: Nothing known0.850
- 10 × impact 0.4 × prerequisites 1 × threat 0.853.400
- Rounded to one decimal between 0.1 and 103.4
Exploitation and evidence timeline
- 30 Nov 2026 Published
- 3 Dec 2026 Risk 3.4 (cvss fallback)
Weakness
CWE-400, CWE-770
References
- https://github.com/faye/websocket-driver-node/security/advisories/GHSA-j7r2-xppq-m353vendor-advisory
- https://github.com/faye/websocket-driver-node/commit/93c3c5fc43e40726eaa3c25d13d200f0ec12cfedmisc
- https://nvd.nist.gov/vuln/detail/CVE-2026-140000
- https://github.com/advisories/GHSA-j7r2-xppq-m353
- CVE-2026-140000 on CVE.org