Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @nestjs/microservices
  4. ›
  5. CVE-2026-40879

CVE-2026-40879: Nest Affected by DoS via Recursive handleData in JsonSocket (TCP Transport)

April 14, 2026 (updated April 27, 2026)

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

References

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

Code Behaviors & Features

Detect and mitigate CVE-2026-40879 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 11.1.19

Fixed versions

  • 11.1.19

Solution

Upgrade to version 11.1.19 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

npm/@nestjs/microservices/CVE-2026-40879.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:37 +0000.