Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @nestjs/devtools-integration
  4. ›
  5. CVE-2025-54782

CVE-2025-54782: @nestjs/devtools-integration: CSRF to Sandbox Escape Allows for RCE against JS Developers

August 1, 2025 (updated November 10, 2025)

A critical Remote Code Execution (RCE) vulnerability was discovered in the @nestjs/devtools-integration package. When enabled, the package exposes a local development HTTP server with an API endpoint that uses an unsafe JavaScript sandbox (safe-eval-like implementation). Due to improper sandboxing and missing cross-origin protections, any malicious website visited by a developer can execute arbitrary code on their local machine.

A full blog post about how this vulnerability was uncovered can be found on Socket’s blog.

References

  • github.com/JLLeitschuh/nestjs-devtools-integration-rce-poc
  • github.com/JLLeitschuh/nestjs-typescript-starter-w-devtools-integration
  • github.com/advisories/GHSA-85cg-cmq5-qjm7
  • github.com/nestjs/nest
  • github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7
  • jlleitschuh.org/nestjs-devtools-integration-rce-poc
  • nodejs.org/api/vm.html
  • nvd.nist.gov/vuln/detail/CVE-2025-54782
  • socket.dev/blog/nestjs-rce-vuln

Code Behaviors & Features

Detect and mitigate CVE-2025-54782 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 0.2.1

Fixed versions

  • 0.2.1

Solution

Upgrade to version 0.2.1 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)
  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/@nestjs/devtools-integration/CVE-2025-54782.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:46 +0000.