Skip to main content

NestJS CVE-2026-102281

| EUVDEUVD-2026-88511 HIGH
Uncaught Exception (CWE-248)
2026-09-28 GitHub_M GHSA-m8vh-jmq9-5rjg
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed TCP port or RMQ queue
  2. Delivery
    Craft message with deeply nested non-string pattern
  3. Exploit
    JSON.stringify throws RangeError (stack overflow)
  4. Execution
    Unhandled promise rejection kills Node process
  5. Impact
    Microservice denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling completeness
Exploitation Conditions

Exploitation requires the NestJS application to run as a microservice using specifically the TCP transport (ServerTCP) or the RabbitMQ transport (ServerRMQ) - all other transports are unaffected because their patterns arrive as strings and never reach the vulnerable JSON.stringify path. The attacker must have network reachability to the microservice's raw TCP listening port, or the ability to publish messages to the RabbitMQ queue or exchange the service consumes. No authentication or user interaction is needed (PR:N/UI:N), and default Node.js behavior (unhandled promise rejection terminating the process) is what turns the thrown RangeError into a crash. The primary limiting factor is exposure: these transport endpoints are commonly internal service-to-service surfaces rather than internet-facing, so realistic risk depends on whether the TCP port or message broker is reachable by an attacker. Affected versions are prior to 11.2.4 and prior to 12.0.2.

Impact

The CVSS 3.1 vector (7.5, AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) accurately captures a pure availability-loss network DoS: remote, unauthenticated, low-complexity, no user interaction, with no confidentiality or integrity impact. The high score is driven entirely by A:H. However, the score materially overstates day-to-day risk because exploitation is gated by deployment architecture: only microservices using the TCP or RabbitMQ transports are affected, and the attacker must be able to reach the raw TCP port or publish to the consumed RabbitMQ queue/exchange - surfaces that are frequently internal-only and not exposed to the public internet. No SSVC decision data, EPSS score, KEV listing, or public POC is provided in the input, so there is no signal of active or automated exploitation; per the precision rules this is 'no public exploit identified at time of analysis.' This is a real, easily-triggered crash-on-demand where the transport is reachable, but absent exploitation telemetry it reads as a moderate-priority patch for exposed microservice deployments rather than a widespread emergency. Data gap to note: EPSS/KEV/SSVC/POC signals are all absent from the input, so exploitation likelihood cannot be quantified.

Exploit ScenarioDerived

An attacker who can reach a NestJS microservice's TCP transport port (or publish to its consumed RabbitMQ queue/exchange) sends a single message whose pattern field is a deeply nested object rather than a string. When ServerTCP#handleMessage or ServerRMQ#handleMessage calls JSON.stringify on that non-string pattern to build the handler lookup key, it throws RangeError: Maximum call stack size exceeded, and the resulting unhandled promise rejection terminates the Node.js process on demand. No public POC is referenced in the input, though the fix commits and PR #17737 are public.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 28, 2026

A remote, unauthenticated denial-of-service condition in the NestJS (Nest) microservices framework lets an attacker crash a service on demand by sending a single message whose 'pattern' field is a deeply nested object. Only deployments using the TCP transport (ServerTCP) or the RabbitMQ transport (ServerRMQ) are exposed, because those paths pass a client-controlled, non-string pattern into JSON.stringify to compute the handler lookup key; sufficient nesting throws 'RangeError: Maximum call stack size exceeded', and the unhandled promise rejection terminates the Node.js process under default behavior. Affected versions are prior to 11.2.4 and prior to 12.0.2; the CVSS 3.1 score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) reflects pure availability loss with no confidentiality or integrity impact, and no public exploit has been identified at time of analysis. Risk is highest where the raw TCP port or consumed RabbitMQ queue/exchange is reachable by untrusted parties, since these are typically internal service-to-service surfaces.

RemediationAI

Vendor-released patch: upgrade to NestJS 11.2.4 (for the 11.x line) or 12.0.2 (for the 12.x line), which are the versions where the pattern-serialization and unhandled-rejection paths are corrected (see GHSA-m8vh-jmq9-5rjg and releases v11.2.4 / v12.0.2). If immediate upgrade is not possible, apply compensating controls matched to the exposed transport: for TCP microservices, block or restrict network reachability to the ServerTCP listening port at the firewall/security-group level so only trusted internal services can connect, accepting that this narrows legitimate service-to-service traffic; for RabbitMQ-backed services, enforce broker authentication and authorization and tighten publish permissions on the specific queue or exchange the service consumes so that only trusted producers can submit messages, with the trade-off that misconfigured producer credentials or shared exchanges will break message flow. Do not rely on adding a process-level unhandledRejection handler as a permanent fix - it would stop the crash but masks errors and diverges from Node.js default termination semantics. The upstream fix is available via PR #17737 and commits aa97b5144d8dff1ce700aac521eb86449a679d6f and e9dcd4c7ac64361fbfe79461da85f5b3fc3e02da for teams tracking the source change.

Affected VersionsENISA

nest 12.0.0, < 12.0.2
nest < 11.2.4

Affected Packages

npm @nestjs/microservices fix: 11.2.4, 12.0.2
euvd nest fix: 11.2.4, 12.0.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-248 (Uncaught Exception) is the root-cause class: the vulnerable code performs an unguarded recursive serialization on attacker-influenced input, and the resulting exception is never caught. In NestJS microservices, the transport layer derives the message handler lookup key from the incoming message's 'pattern' field. ServerTCP#handleMessage and ServerRMQ#handleMessage previously applied an isString() check only to decide the formatting path and otherwise called JSON.stringify(packet.pattern) directly; because JSON.stringify recurses proportionally to object depth, a pattern with enough nested levels exhausts the JavaScript call stack and raises RangeError: Maximum call stack size exceeded. The repository fix (PR #17737) replaces the isString/JSON.stringify logic with a shared getPatternAsString helper, introduces an UNSERIALIZABLE_PATTERN sentinel constant, and wraps the TCP/RMQ handlers so that rejections are routed via .catch(err => this.handleError(err)) instead of surfacing as unhandled promise rejections that terminate Node.js. Crucially, other NestJS transports are unaffected because their patterns are delivered as strings and never reach the recursive JSON.stringify path. The CPE cpe:2.3:a:nestjs:nest:*:*:*:*:*:*:*:* denotes the affected npm package across all versions, with the fix boundary set at the version-specific thresholds.

Know when Nest gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Remote unauthenticated single message crashes the process with no user interaction (AV:N/AC:L/PR:N/UI:N); impact is availability-only, so C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Sep 28, 2026 - 22:02 EUVD
CVE Published
Sep 28, 2026 - 21:21 cve.org
HIGH 7.5

DescriptionCVE.org

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.

Technical POC Analysis

CWE-674 (Uncontrolled Recursion) surfacing as CWE-248 (Uncaught Exception).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

A single unauthenticated network message can crash any NestJS microservice that uses the framework's TCP or RabbitMQ transport, forcing the process to terminate and taking that service offline until it is restarted. Because these transports are commonly used for internal service-to-service traffic (order handling, payments, notifications, data pipelines), an attacker with any network path to the raw TCP port or the consumed RabbitMQ queue can repeatedly degrade or halt dependent business workflows without needing credentials. No vendor patch is available, so leadership should treat this as an availability risk to be contained at the network and broker layer rather than a code-level fix.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: isolate ServerTCP ports and ServerRMQ queues/exchanges so they are reachable only from trusted service networks (firewall, security group, or Kubernetes NetworkPolicy); enforce broker authentication, per-queue publish ACLs, and mutual TLS on all transport connections; reject, truncate, or reject-early any message whose 'pattern' field is not a plain string, using depth and size limits at an API gateway or consumer pre-validation; add rate limiting and maximum message size caps; install a global unhandledRejection handler and process supervision with automatic restart to prevent a single rejected promise from terminating the service; monitor and alert on RangeError: Maximum call stack size exceeded and process restarts; and plan migration to versions 11.2.4 / 12.0.2 as soon as they are released and validated.

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
High
NestJS is a widely-adopted Node.js/TypeScript server framework, though only TCP/RMQ transports affected
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy