# CVE-2026-140002: websocket-driver: Memory exhaustion triggered by buffering of data received after socket is closed

Status: published. Published: 2026-11-30. Updated: 2026-12-01.

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.1, receiving a WebSocket close frame moves the driver into a state where the parser no longer consumes input, but a half-open TCP client can continue sending bytes that the driver buffers in memory. An unauthenticated remote client can send one close frame, keep its side of the connection open, and stream data indefinitely until the server exhausts memory and crashes. This issue is fixed in version 0.8.1.

## Remediation

- fix: websocket-driver (npm): OSV reports a fixed version 0.8.1. Check the advisory for supported release branches. (source: OSV GHSA-v674-7268-hvqh) — https://github.com/advisories/GHSA-v674-7268-hvqh

## Affected products and versions

- faye / websocket-driver-node: < 0.8.1 (affected). Source: CNA: GitHub_M
-  / websocket-driver (websocket-driver): ≥ 0; < 0.8.1 (affected, semver); OSV events: introduced 0; fixed 0.8.1. Source: OSV GHSA-v674-7268-hvqh

## Severity and prioritization

- CVSS 3.1: 7.5 (high); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H; source: CNA: GitHub_M

- CVSS 3.1: 7.5 (high); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H; source: NVD: security-advisories@github.com

- CISA KEV: No listing in collected sources

- EPSS: 0.62% as of 2026-12-01; percentile 51.11%

- SSVC: exploitation poc; automatable yes; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-770

## Exploit evidence

- exploit: https://github.com/faye/websocket-driver-node/security/advisories/GHSA-v674-7268-hvqh (ADP: CISA-ADP)

## References

- https://github.com/faye/websocket-driver-node/security/advisories/GHSA-v674-7268-hvqh (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/faye/websocket-driver-node/commit/189e7b7e75d49e61f2589da995de6e7323db6284 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/faye/websocket-driver-node/security/advisories/GHSA-v674-7268-hvqh (ADP: CISA-ADP; exploit)

- https://github.com/faye/websocket-driver-node/commit/189e7b7e75d49e61f2589da995de6e7323db6284 (security-advisories@github.com)

- https://github.com/faye/websocket-driver-node/security/advisories/GHSA-v674-7268-hvqh (security-advisories@github.com)

- https://github.com/advisories/GHSA-v674-7268-hvqh (OSV / GitHub Security Advisories; advisory)

- https://osv.dev/vulnerability/GHSA-v674-7268-hvqh (OSV / GitHub Security Advisories; osv)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-140002; retrieved 2026-12-01; source updated 2026-12-01

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-140002; retrieved 2026-12-01; source updated 2026-11-30

- OSV / GitHub Security Advisories: https://osv.dev/vulnerability/GHSA-v674-7268-hvqh; retrieved 2026-12-01; source updated 2026-12-01

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-140002; retrieved 2026-12-01; source updated Not reported

Revision: f581c88d0877fed1c163cdcceff1a80930cc113490ec8edede121b8c8e34c0a1

Canonical: https://y2.dev/cve/CVE-2026-140002

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.