CVE 7.5 HIGH

Nest: DoS via Recursive handleData in JsonSocket (TCP Transport)_CVE-2026-40879

7.5 / 10
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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.

Basic Information

ID CVE-2026-40879
Source GitHub_M
Published Apr 21, 2026 at 19:14
Modified Apr 21, 2026 at 19:38

Affected Product

Vendor nestjs
Product nest
Version < 11.1.19
Affected Versions nestjs nest < 11.1.19

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.