~ / search / GHSA-hpwf-8g29-85qm

GHSA-hpwf-8g29-85qm

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

Source: GitHub Advisory Database (reviewed) High CVE-2026-40879

Packages

EcosystemPackageAffectedFixed 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.