Skip to content
OpenAdvisories
High · 7.5 CVE-2026-40879 EUVD-2026-24264GHSA-hpwf-8g29-85qm

Nest: DoS via Recursive handleData in JsonSocket (TCP Transport)

Published Apr 21, 2026 · Updated Apr 21, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
nestjs nest < 11.1.19 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @nestjs/microservices < 11.1.19 11.1.19 GHSA-hpwf-8g29-85qm

References