CVE-2026-40879 | nestjs nest up to 11.1.18 JSON Message handleData recursion (GHSA-hpwf-8g29-85qm)
VulDBArchived Apr 22, 2026✓ Full text saved
A vulnerability categorized as problematic has been discovered in nestjs nest up to 11.1.18 . Affected by this issue is the function handleData of the component JSON Message Handler . The manipulation results in uncontrolled recursion. This vulnerability is known as CVE-2026-40879 . It is possible to launch the attack remotely. No exploit is available. It is advisable to upgrade the affected component.
Full text archived locally
✦ AI Summary· Claude Sonnet
VDB-358591 · CVE-2026-40879 · GHSA-HPWF-8G29-85QM
NESTJS NEST UP TO 11.1.18 JSON MESSAGE HANDLEDATA RECURSION
HISTORYDIFFRELATEJSONXMLCTI
CVSS Meta Temp Score Current Exploit Price (≈) CTI Interest Score
6.3 $0-$5k 1.78+
Summaryinfo
A vulnerability identified as problematic has been detected in nestjs nest up to 11.1.18. This affects the function handleData of the component JSON Message Handler. This manipulation causes recursion. This vulnerability is handled as CVE-2026-40879. The attack can be initiated remotely. There is not any exploit available. You should upgrade the affected component.
Detailsinfo
A vulnerability has been found in nestjs nest up to 11.1.18 and classified as problematic. Affected by this vulnerability is the function handleData of the component JSON Message Handler. The manipulation with an unknown input leads to a recursion vulnerability. The CWE definition for the vulnerability is CWE-674. The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. As an impact it is known to affect availability. The summary by CVE is:
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.
It is possible to read the advisory at github.com. This vulnerability is known as CVE-2026-40879 since 04/15/2026. The exploitation appears to be easy. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details of the vulnerability are known, but there is no available exploit. The attack technique deployed by this issue is T1499 according to MITRE ATT&CK.
Upgrading to version 11.1.19 eliminates this vulnerability.
Productinfo
Vendor
nestjs
Name
nest
Version
11.1.0
11.1.1
11.1.2
11.1.3
11.1.4
11.1.5
11.1.6
11.1.7
11.1.8
11.1.9
11.1.10
11.1.11
11.1.12
11.1.13
11.1.14
11.1.15
11.1.16
11.1.17
11.1.18
Website
Product: https://github.com/nestjs/nest/
CPE 2.3info
🔒
🔒
🔒
CPE 2.2info
🔒
🔒
🔒
CVSSv4info
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv3info
VulDB Meta Base Score: 6.4
VulDB Meta Temp Score: 6.3
VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 7.5
CNA Vector (GitHub_M): 🔒
CVSSv2info
Vector Complexity Authentication Confidentiality Integrity Availability
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploitinginfo
Class: Recursion
CWE: CWE-674 / CWE-404
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
Price Prediction: 🔍
Current Price Estimation: 🔒
0-Day Unlock Unlock Unlock Unlock
Today Unlock Unlock Unlock Unlock
Threat Intelligenceinfo
Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍
Countermeasuresinfo
Recommended: Upgrade
Status: 🔍
0-Day Time: 🔒
Upgrade: nest 11.1.19
Timelineinfo
04/15/2026 CVE reserved
04/21/2026 +6 days Advisory disclosed
04/21/2026 +0 days VulDB entry created
04/21/2026 +0 days VulDB entry last update
Sourcesinfo
Product: github.com
Advisory: GHSA-hpwf-8g29-85qm
Status: Confirmed
CVE: CVE-2026-40879 (🔒)
GCVE (CVE): GCVE-0-2026-40879
GCVE (VulDB): GCVE-100-358591
Entryinfo
Created: 04/21/2026 22:37
Changes: 04/21/2026 22:37 (65)
Complete: 🔍
Cache ID: 99:B28:101
Discussion
No comments yet. Languages: en.
Please log in to comment.
◂ PreviousOverviewNext ▸