CVE-2026-40879

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductNest
PublishedApr 21, 2026
First seenApr 21, 2026
Weakness typeCWE-674CWE-674

How to fix

Update
  • nestjs nest11.1.19 or later
  • @nestjs/microservices11.1.19 or later

Affected products

ProductAffected versionsFixed in
nestjs nestv < 11.1.1911.1.19
@nestjs/microservicesnpmv < 11.1.1911.1.19

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.