CVE-2026-40879
HIGH 7.5CVSS 3.1Nest Affected by DoS via Recursive handleData in JsonSocket (TCP Transport)
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.
- Published
- 21 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-674CWE-770
- Also known as
- GHSA-hpwf-8g29-85qm
- Sources
- NVDJSONOSV GHSA-hpwf-8g29-85qmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nestjs | nestcpe:2.3:a:nestjs:nest:*:*:*:*:*:node.js:*:* |
< 11.1.19 | 11.1.19 |
| OSV | npm | @nestjs/microservices | < 11.1.19 | 11.1.19 |
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
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 21 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 14 Apr 2026)