GHSA-hpwf-8g29-85qmHighCVSS 7.5

Nest Affected by DoS via Recursive handleData in JsonSocket (TCP Transport)

Published
April 14, 2026
Last Modified
April 27, 2026

🔗 CVE IDs covered (1)

📋 Description

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

🎯 Affected products1

  • npm/@nestjs/microservices:<= 11.1.18

🔗 References (3)