Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-40879

Nest Affected by DoS via Recursive handleData in JsonSocket (TCP Transport)
Back to all
CVE

CVE-2026-40879

Nest Affected by DoS via Recursive handleData in JsonSocket (TCP Transport)

Impact

Attacker sends many small, valid JSON messages in one TCP frame

 → handleData() recurses once per message; buffer shrinks each call

 → maxBufferSize is never reached; call stack overflows instead

 → A ~47 KB payload is sufficient to trigger RangeError

Patches

Fixed in @nestjs/microservices@11.1.19

References

Discovered by https://github.com/hwpark6804-gif

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
7.5
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
C
H
U
7.5
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Related Resources

No items found.

References

https://github.com/nestjs/nest/security/advisories/GHSA-hpwf-8g29-85qm, https://nvd.nist.gov/vuln/detail/CVE-2026-40879, https://github.com/nestjs/nest

Severity

7.5

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
7.5
EPSS Probability
0.00061%
EPSS Percentile
0.19438%
Introduced Version
0,12.0.0-alpha.0,6.0.3
Fix Available
11.1.19

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading