Skip to main content
VulnerabilityPublished

CVE-2026-40879: nestjs nest · Uncontrolled Recursion

Affects nestjs nestSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.5 High : upgrade to 11.1.19 soon.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 26% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 11.1.19
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade nestjs nest to 11.1.19.

Affected software

ProductAffectedFixed in
nestjsnestAffected
  • <11.1.19
Fixed in
  • 11.1.19

AI-suggested

Upgrade NestJS to version 11.1.19 or later, where this vulnerability is fixed. Since the vendor advisory indicates the issue is resolved in 11.1.19, applying this official fix is the recommended remediation. Patch status is confirmed by the vendor advisory stating the fix is included in version 11.1.19.

Description

Nest is a framework for building scalable Node.js server-side applications. Prior to 11.1.19, when an attacker sends many small, valid JSON messages in one TCP frame, handleData() recurses once per message; the buffer shrinks each call.maxBufferSize is never reached; call stack overflows instead. A ~47 KB payload is sufficient to trigger RangeError. This vulnerability is fixed in 11.1.19.

References

Community reviews

Loading reviews…