{"id":"GHSA-hpwf-8g29-85qm","summary":"Nest Affected by DoS via Recursive handleData in JsonSocket (TCP Transport)","details":"### Impact\nAttacker sends many small, valid JSON messages in one TCP frame\n → handleData() recurses once per message; buffer shrinks each call\n → maxBufferSize is never reached; call stack overflows instead\n → A ~47 KB payload is sufficient to trigger RangeError\n\n### Patches\n\nFixed in `@nestjs/microservices@11.1.19`\n\n### References\n\nDiscovered by https://github.com/hwpark6804-gif","aliases":["CVE-2026-40879"],"modified":"2026-05-05T16:07:32.834605Z","published":"2026-04-14T00:15:09Z","database_specific":{"nvd_published_at":"2026-04-21T20:17:01Z","cwe_ids":["CWE-674","CWE-770"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2026-04-14T00:15:09Z"},"references":[{"type":"WEB","url":"https://github.com/nestjs/nest/security/advisories/GHSA-hpwf-8g29-85qm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40879"},{"type":"PACKAGE","url":"https://github.com/nestjs/nest"}],"affected":[{"package":{"name":"@nestjs/microservices","ecosystem":"npm","purl":"pkg:npm/%40nestjs/microservices"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"11.1.19"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 11.1.18","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-hpwf-8g29-85qm/GHSA-hpwf-8g29-85qm.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}