CVE-2026-40879

HIGH

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

Title source: cna
STIX 2.1

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.

Scores

CVSS v3 7.5
EPSS 0.0006
EPSS Percentile 17.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact partial

Details

CWE
CWE-674
Status published
Products (1)
nestjs/nest < 11.1.19 (2 CPE variants)
Published Apr 21, 2026
Tracked Since Apr 22, 2026