GitHub Advisoryadvisory · npm
GHSA-hpwf-8g29-85qm Nest Affected by DoS via Recursive handleData in JsonSocket (TCP Transport)
HIGH
Official page ↗
- Aliases
- CVE-2026-40879
- Ecosystem
- npm
- Packages
- @nestjs/microservices
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-674, CWE-770
- Reviewed
- 2026-04-14
Affected packages
• npm @nestjs/microservices: < 11.1.19 → fixed in 11.1.19
Description
Impact
Attacker sends many small, valid JSON messages in one TCP frame
→ handleData() recurses once per message; buffer shrinks each call
→ maxBufferSize is never reached; call stack overflows instead
→ A ~47 KB payload is sufficient to trigger RangeError
Patches
Fixed in `@nestjs/[email protected]`
References
Discovered by https://github.com/hwpark6804-gif
Related
Alias · CVE (1)
- CVE-2026-40879 Nest is a framework for building scalable Node.js server-side applications. vulnerability