CVE-2026-40879
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.
How to fix
- nestjs nest11.1.19 or later
- @nestjs/microservices11.1.19 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nestjs nest | v < 11.1.19 | 11.1.19 |
| @nestjs/microservicesnpm | v < 11.1.19 | 11.1.19 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.