Skip to content

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

HighCVSS 7.5 EPSS 0.34%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
nestjs @nestjs/microservices(npm) < 11.1.19; <= 11.1.18 11.1.19 Fixed
nestjs nest < 11.1.19; = < 11.1.19 11.1.19 Fixed

Affected products

ProductAffected versionsFixed in
nestjs nest = < 11.1.19 No fix listed
nestjs @nestjs/microservices(npm) <= 11.1.18 No fix listed
nestjs nest < 11.1.19 11.1.19
nestjs @nestjs/microservices(npm) < 11.1.19 11.1.19

References