{"id":"CVE-2026-40879","published":"2026-04-21T19:14:17Z","modified":"2026-04-21T19:38:04Z","title":"Nest: DoS via Recursive handleData in JsonSocket (TCP Transport)","vendor":"nestjs","product":"nest","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00476,"percentile":0.33405,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/nestjs/nest/security/advisories/GHSA-hpwf-8g29-85qm","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":6.68},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"nestjs","affectedVersions":[{"vendor":"nestjs","product":"nest","versions":["< 11.1.19"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-21T19:37:57.073705Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@nestjs/microservices","vulnerableRanges":["<11.1.19"],"patched":["11.1.19"],"from":["GHSA-hpwf-8g29-85qm"],"provenance":"source"}],"summary":{"text":"The flaw is an uncontrolled recursion in the handleData() routine of JsonSocket, the TCP transport component of the Nest framework (nestjs/nest). An attacker can crash the server by sending a single TCP frame containing many small, valid JSON messages (around 47 KB is enough), which requires only network access to the TCP transport and no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:55Z"},"euvd":{"id":"EUVD-2026-24264","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-40879","published":"2026-04-21","fixed":"11.1.19","kev":false},{"cve":"CVE-2026-102281","published":"2026-09-28","fixed":"12.0.2","kev":false,"link":{"from":"CVE-2026-40879","to":"CVE-2026-102281","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@nestjs/microservices","fromFixed":"11.1.19","toFixed":"11.2.4","daysApart":160}]}}],"package":"npm:@nestjs/microservices"}}