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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2026-04-14T00:15:09.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-hpwf-8g29-85qm
- Weaknesses: CWE-674, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- nestjs nest: < 11.1.19; before 11.1.19
- @nestjs/microservices (npm): before 11.1.19

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/nestjs/nest/security/advisories/GHSA-hpwf-8g29-85qm> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40879> (advisory)
- <https://github.com/nestjs/nest> (package)

## Sources

- CVE List: [CVE-2026-40879](https://www.cve.org/CVERecord?id=CVE-2026-40879), CVE Terms of Use, modified 2026-04-21
- GitHub Advisory Database: [GHSA-hpwf-8g29-85qm](https://github.com/advisories/GHSA-hpwf-8g29-85qm), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-40879](https://nvd.nist.gov/vuln/detail/CVE-2026-40879), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40879 · Whole record: https://cve.day/CVE-2026-40879.json · Rebuilt by cve.day 2026-11-25T22:59:19.138Z
