Nest: Remote process termination via a deeply nested microservice message pattern
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-248.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| nestjs | nest | before 11.2.4; 12.0.0 to before 12.0.2 | 11.2.4, 12.0.2 | Patch available | CNA |
| — | @nestjs/microservices (npm) | before 11.2.4 | 11.2.4 | Patch available | GHSA-m8vh-jmq9-5rjg |
| — | @nestjs/microservices (npm) | 12.0.0 to before 12.0.2 | 12.0.2 | Patch available | GHSA-m8vh-jmq9-5rjg |
- nest Vendornestjs Affected before 11.2.4; 12.0.0 to before 12.0.2 Fixed in 11.2.4, 12.0.2 Patch available CNA
- @nestjs/microservices (npm) Vendor— Affected before 11.2.4 Fixed in 11.2.4 Patch available GHSA-m8vh-jmq9-5rjg
- @nestjs/microservices (npm) Vendor— Affected 12.0.0 to before 12.0.2 Fixed in 12.0.2 Patch available GHSA-m8vh-jmq9-5rjg
Remediation
- Fix · CNA nest (nestjs) Fixed in 11.2.4, 12.0.2
- Fix · GHSA-m8vh-jmq9-5rjg @nestjs/microservices (npm) Fixed in 11.2.4 Advisory →
- Fix · GHSA-m8vh-jmq9-5rjg @nestjs/microservices (npm) Fixed in 12.0.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-102281
- 2026-10-03 Alias added: GHSA-m8vh-jmq9-5rjg
References
Other 7
- https://github.com/nestjs/nest/security/advisories/GHSA-m8vh-jmq9-5rjg
- https://github.com/nestjs/nest/pull/17737
- https://github.com/nestjs/nest/commit/aa97b5144d8dff1ce700aac521eb86449a679d6f
- https://github.com/nestjs/nest/commit/e9dcd4c7ac64361fbfe79461da85f5b3fc3e02da
- https://github.com/nestjs/nest/releases/tag/v11.2.4
- https://github.com/nestjs/nest/releases/tag/v12.0.2
- https://github.com/nestjs/nest
More nestjs vulnerabilities
- TI-2025-34537 @nestjs/devtools-integration's CSRF to Sandbox Escape Allows for RCE against JS Developers CVSS 4.0CRITICAL 9.4
- TI-2026-01938 NestJS 11.1.13 - Lack of data validation allowing authentication/authorization bypass CVSS 4.0HIGH 8.2
- TI-2025-42665 Nest has a Fastify URL Encoding Middleware Bypass (TOCTOU) CVSS 4.0MEDIUM 6.9
- TI-2024-19449 File Upload vulnerability in nestjs nest v.10.3.2 allows a remote attacker to execute… CVSS 3.1MEDIUM 5.5
- TI-2026-25458 Nest Fastify HEAD Request Middleware Bypass CVSS 4.0HIGH 8.7
- TI-2026-39181 Nest: Middleware Bypass on Fastify via Trailing Slash CVSS 4.0HIGH 8.7
Sources
- CVE-2026-102281 · CVE Program
- CVE-2026-102281 · NVD
- FIRST EPSS
- GHSA-m8vh-jmq9-5rjg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences