VDB
Sign up
HIGH7.5

GHSA-hpwf-8g29-85qm

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

Quick fix

GHSA-hpwf-8g29-85qm — @nestjs/microservices: upgrade to the fixed version with the command below.

npm install @nestjs/microservices@11.1.19

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/microservices@11.1.19`

### References

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

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/@nestjs/microservices
Introduced in: 0Fixed in: 11.1.19
Fixnpm install @nestjs/microservices@11.1.19

References