@nestjs/microservices is vulnerable to Denial of Service (DoS)
75
High Risk
The TCP and RabbitMQ microservice servers stringify client-supplied object message patterns with unguarded JSON.stringify. A deeply nested pattern can parse successfully but throw RangeError: Maximum call stack size exceeded during stringification; because the asynchronous handler had no rejection handler, this terminates the Node process under default settings. One crafted message can repeatedly crash the service. The fix routes patterns through guarded getPatternAsString handling and catches handler rejections.
You are affected if you are using a version that falls within the vulnerable range and you run a microservice with the TCP or RabbitMQ transport whose port or queue is reachable by untrusted peers.
@nestjs/microservices is vulnerable to Denial of Service (DoS) in versions 2.0.0 - 11.2.3 and 12.0.0 - 12.0.1.
Upgrade the @nestjs/microservices library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.