NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

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

highCVSS 3.1 7.5GHSA-hpwf-8g29-85qm

Impact Attacker sends many small, valid JSON messages in one TCP frame → handleData() recurses once per message; buffer shrinks each call → maxBufferSize is never reached; call stack overflows instead → A ~47 KB payload is sufficient to trigger RangeError Patches Fixed in @nestjs/[email protected] References Discovered by https://github.com/hwpark6804-gif

Published Apr 14, 2026 · Updated Apr 27, 2026

Affected packages

@nestjs/microservices

Ecosystem
npm
Affected
<= 11.1.18
Fixed in
11.1.19
Check
npm ls @nestjs/microservices

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Impact

Attacker sends many small, valid JSON messages in one TCP frame → handleData() recurses once per message; buffer shrinks each call → maxBufferSize is never reached; call stack overflows instead → A ~47 KB payload is sufficient to trigger RangeError

Patches

Fixed in @nestjs/[email protected]

References

Discovered by https://github.com/hwpark6804-gif

Credited to hwpark6804-gif, kamilmysliwiec.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries