Advisory

GHSA-hpwf-8g29-85qm

Also known as: CVE-2026-40879

Summary

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

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-04-14 00:15 UTC
Modified
2026-05-05 16:07 UTC

Affected packages and fixes

@nestjs/microservices

npm · All systems

Affected

  • introduced 0, fixed 11.1.19 (semver)

Fixed versions

11.1.19

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences