CVE-2026-40879 Nest: DoS via Recursive handleData in JsonSocket (TCP Transport)
HighCVSS 7.5
EPSS 0.34%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
Description
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| nestjs @nestjs/microservices(npm) | < 11.1.19; <= 11.1.18 | 11.1.19 | Fixed |
| nestjs nest | < 11.1.19; = < 11.1.19 | 11.1.19 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nestjs nest | = < 11.1.19 | No fix listed |
| nestjs @nestjs/microservices(npm) | <= 11.1.18 | No fix listed |
| nestjs nest | < 11.1.19 | 11.1.19 |
| nestjs @nestjs/microservices(npm) | < 11.1.19 | 11.1.19 |
References
- https://github.com/nestjs/nest/security/advisories/GHSA-hpwf-8g29-85qm vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product