En bref
- CVE-2026-40879 est une vulnérabilité ÉLEVÉE (CVSS 7.5) touchant nest (nestjs), @nestjs/microservices.
- Probabilité d'exploitation dans les 30 prochains jours (EPSS) : 0.33%, plus élevée que 26.1% des vulnérabilités.
- Correctif : mettre à jour vers 11.1.19 ou plus récent.
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
NVD 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.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free