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 August 4, 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. Learn more about Dependency Scanning →

Affected versions

All versions before 0.2.1

Fixed versions

  • 0.2.1

Solution

Upgrade to version 0.2.1 or above.

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 Tue, 19 Aug 2025 12:18:22 +0000.