Buffer Overflow in Nest Framework for Node.js Applications
CVE-2026-40879

7.5HIGH

Key Information:

Vendor

Nestjs

Status
Vendor
CVE Published:
21 April 2026

What is CVE-2026-40879?

The Nest framework, widely used for building scalable Node.js server-side applications, is susceptible to a buffer overflow vulnerability in versions before 11.1.19. When an attacker sends multiple small, valid JSON messages within a single TCP frame, the handleData() method can cause a recursive call per message. As the call stack shrinks with each iteration, the maximum buffer size is never reached, leading to a stack overflow condition. A payload of approximately 47 KB can trigger a RangeError. This security flaw has been addressed in version 11.1.19 with appropriate measures implemented to enhance stability and security.

Affected Version(s)

nest < 11.1.19

References

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.