High severity · published Apr 21, 2026
CVE-2026-40879
Nest: DoS via Recursive handleData in JsonSocket (TCP Transport)
7.5
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 26% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
NE
nest · nestjs
< 11.1.19 · source: vendor, NVD
Affected product
NE
nest
nestjs
More from nest
9.8
CVE-2026-2293
NestJS 11.1.13 - Lack of data validation allowing authentication/authorization bypass
8.7
CVE-2026-54281
Nest: Middleware Bypass on Fastify via Trailing Slash
7.5
CVE-2026-102281
Nest: Remote process termination via a deeply nested microservice message pattern
7.5
CVE-2026-33011
Nest Fastify HEAD Request Middleware Bypass
7.4
CVE-2025-69211
Nest has a Fastify URL Encoding Middleware Bypass (TOCTOU)