Nest: DoS via Recursive handleData in JsonSocket (TCP Transport)
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-674.
Summary
Nest is a framework for building scalable Node.js server-side applications. Prior to 11.1.19, when an attacker sends many small, valid JSON messages in one TCP frame, handleData() recurses once per message; the buffer shrinks each call. maxBufferSize is never reached; call stack overflows instead. A ~47 KB payload is sufficient to trigger RangeError. This vulnerability is fixed in 11.1.19.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| nestjs | nest | before 11.1.19 | 11.1.19 | Patch available | CNA |
| — | @nestjs/microservices (npm) | before 11.1.19 | 11.1.19 | Patch available | GHSA-hpwf-8g29-85qm |
- nest Vendornestjs Affected before 11.1.19 Fixed in 11.1.19 Patch available CNA
- @nestjs/microservices (npm) Vendor— Affected before 11.1.19 Fixed in 11.1.19 Patch available GHSA-hpwf-8g29-85qm
Remediation
- Fix · CNA nest (nestjs) Fixed in 11.1.19
- Fix · GHSA-hpwf-8g29-85qm @nestjs/microservices (npm) Fixed in 11.1.19 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40879
- 2026-10-03 Alias added: GHSA-hpwf-8g29-85qm
References
More nestjs Nest vulnerabilities
- TI-2026-01938 NestJS 11.1.13 - Lack of data validation allowing authentication/authorization bypass CVSS 4.0HIGH 8.2
- TI-2025-42665 Nest has a Fastify URL Encoding Middleware Bypass (TOCTOU) CVSS 4.0MEDIUM 6.9
- TI-2024-19449 File Upload vulnerability in nestjs nest v.10.3.2 allows a remote attacker to execute… CVSS 3.1MEDIUM 5.5
- TI-2026-25458 Nest Fastify HEAD Request Middleware Bypass CVSS 4.0HIGH 8.7
- TI-2026-27632 @nestjs/core Improperly Neutralizes Special Elements in Output Used by a Downstream Component ('Injection') CVSS 4.0MEDIUM 6.3
- TI-2023-11333 Information disclosure in @nestjs/core CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-40879 · CVE Program
- CVE-2026-40879 · NVD
- FIRST EPSS
- GHSA-hpwf-8g29-85qm · GitHub Advisory Database · CC BY 4.0
- CVE-2026-40879 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences