GHSA-hpwf-8g29-85qm
Nest Affected by DoS via Recursive handleData in JsonSocket (TCP Transport)
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @nestjs/microservices | < 11.1.19 | 11.1.19 |
Details
As written in the advisory (Markdown source, shown as plain text).
### 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
References
External links from the advisory. They lead to third-party sites.