Intel

AIKIDO-2026-327445

@nestjs/microservices is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-m8vh-jmq9-5rjg Published Today

75

High Risk

This Affects:

JS@nestjs/microservices
2.0.0 - 11.2.3
Fixed in 11.2.4
12.0.0 - 12.0.1
Fixed in 12.0.2
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

@nestjs/microservices is vulnerable to Denial of Service (DoS) in versions 2.0.0 - 11.2.3 and 12.0.0 - 12.0.1.

How to fix this

Upgrade the @nestjs/microservices library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform