CVE-2026-40879: Nest Affected by DoS via Recursive handleData in JsonSocket (TCP Transport)
(updated )
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
References
Code Behaviors & Features
Detect and mitigate CVE-2026-40879 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →