CVE-2026-102281Nestjs Nest uncontrolled recursion
CVSS score
7.5
High
CVSS 3.1 from github.com
Exploit probability (EPSS)
0.59%
0.59% chance of exploitation in the next 30 days, higher than 48.9% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running nestjs Nest and compare its version with the affected versions.
Update to a fixed version
- Update Nest to 11.2.4, 12.0.2 or later, on the branch you run.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected products
| Affected products | Versions |
|---|---|
| nestjs Nest | < 11.2.4 · >= 12.0.0, < 12.0.2 |
Frequently asked questions
Is CVE-2026-102281 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.6% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-102281?
CVE-2026-102281 has a CVSS 3.1 base score of 7.5 (high).
Which versions are affected?
Nestjs Nest (< 11.2.4; >= 12.0.0, < 12.0.2)
Is there a patch for CVE-2026-102281?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/nestjs/nest/commit/aa97b5144d8dff1ce700aac521eb86449a679d6f
- github.com/nestjs/nest/commit/e9dcd4c7ac64361fbfe79461da85f5b3fc3e02da
- github.com/nestjs/nest/pull/17737
- github.com/nestjs/nest/releases/tag/v11.2.4
- github.com/nestjs/nest/releases/tag/v12.0.2
- github.com/nestjs/nest/security/advisories/GHSA-m8vh-jmq9-5rjg
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.