Skip to main content
← All vulnerabilities
CVE-2025-54782GHSA-85CG-CMQ5-QJM7

@nestjs/devtools-integration's CSRF to Sandbox Escape Allows for RCE against JS Developers

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.2.1
2 proofs of concept on GitHub, 1 Nuclei template
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

Nest is a framework for building scalable Node.js server-side applications. In versions 0.2.0 and below, 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. The package adds HTTP endpoints to a locally running NestJS development server. One of these endpoints, /inspector/graph/interact, accepts JSON input containing a code field and executes the provided code in a Node.js vm.runInNewContext sandbox. This is fixed in version 0.2.1.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • nestjs nest

    fixed in 0.2.1

  • @nestjs/devtools-integrationnpm

    fixed in 0.2.1

References 8

GitHub · nestjs/nest

GitHub · JLLeitschuh/nestjs-devtools-integration-rce-poc

GitHub · JLLeitschuh/nestjs-typescript-starter-w-devtools-integration

nodejs.org

socket.dev

GitHub · projectdiscovery/nuclei-templates

GitHub · DDestinys/CVE-2025-54782

GitHub · vxaretra/CVE-2025-54782