CVE-2026-102281: Nest: Remote process termination via a deeply nested microservice message pattern

Published Sep 28, 2026
·
Updated

Nest is a framework for building scalable Node.js server-side applications. Prior to 11.2.4 and 12.0.2, a single message with a deeply nested object in its pattern can terminate a NestJS microservice using the TCP or RabbitMQ transport. ServerTCP#handleMessage and ServerRMQ#handleMessage pass a client-controlled non-string pattern to JSON.stringify to derive the handler lookup key; sufficiently deep nesting throws RangeError: Maximum call stack size exceeded, and the unhandled promise rejection terminates Node.js under its default behavior. An attacker who can reach the TCP port or publish to the consumed RabbitMQ queue or exchange can crash the service on demand; other transports are not affected because their patterns arrive as strings. This issue is fixed in versions 11.2.4 and 12.0.2.

Affected Software

1 affected component
npm/@nestjs/microservices<11.2.4, >=12.0.0<12.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade NestJS to a version that resolves this vulnerability.

    Fixed in 11.2.4
  2. Upgrade

    Upgrade NestJS to a version that resolves this vulnerability.

    Fixed in 12.0.2

Event History

Sep 28, 2026
CVE Published
via MITRE·09:21 PM
Data Sourced
via MITRE·09:21 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this denial-of-service issue?

NestJS microservices using the TCP or RabbitMQ transport are affected before versions 11.2.4 and 12.0.2. Other transports are not affected because they receive message patterns as strings.

2

What access does an attacker need to crash the service?

An attacker must be able to reach the microservice TCP port or publish a message to the RabbitMQ queue or exchange consumed by the service. No authentication or user interaction is required according to the supplied vector.

3

Does this affect default Node.js behavior?

Yes. The crash occurs when deeply nested client-controlled patterns cause JSON.stringify to throw a maximum-call-stack RangeError, and the resulting unhandled promise rejection terminates Node.js under its default behavior.

4

How can I determine whether a service is vulnerable?

Check whether the service uses NestJS microservices with TCP or RabbitMQ transport and runs a version earlier than 11.2.4 or 12.0.2. Affected services can be terminated by a single message whose pattern is a sufficiently deeply nested object.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203