Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-54782

CVE-2025-54782: Nestjs Devtools-integration RCE Vulnerability

CVE-2025-54782 is a critical remote code execution vulnerability in @nestjs/devtools-integration affecting versions 0.2.0 and below. This post covers the technical details, affected versions, security impact, and mitigation.

Published: April 1, 2026

CVE-2025-54782 Overview

CVE-2025-54782 is a critical Remote Code Execution (RCE) vulnerability discovered in the @nestjs/devtools-integration package, a component of the popular Nest framework for building scalable Node.js server-side applications. In versions 0.2.0 and below, the package exposes a local development HTTP server with an API endpoint that uses an unsafe JavaScript sandbox 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 vulnerability specifically affects the /inspector/graph/interact endpoint, which accepts JSON input containing a code field and executes the provided code in a Node.js vm.runInNewContext sandbox. This sandbox implementation is fundamentally flawed, as the Node.js vm module is explicitly documented as not being a security mechanism.

Critical Impact

Attackers can achieve full remote code execution on developer workstations by tricking them into visiting a malicious website while running a NestJS application with devtools integration enabled.

Affected Products

  • NestJS devtools-integration versions 0.2.0 and below

Discovery Timeline

  • 2025-08-02 - CVE CVE-2025-54782 published to NVD
  • 2025-10-09 - Last updated in NVD database

Technical Details for CVE-2025-54782

Vulnerability Analysis

This vulnerability represents a Command Injection weakness (CWE-77) where arbitrary code can be executed through an improperly secured development endpoint. The @nestjs/devtools-integration package adds HTTP endpoints to a locally running NestJS development server intended for debugging purposes. The core issue stems from the use of Node.js's vm.runInNewContext as a security boundary, which it was never designed to be.

When enabled, the devtools integration creates an HTTP server that accepts requests at the /inspector/graph/interact endpoint. This endpoint parses incoming JSON payloads and extracts a code field, which is then executed within what appears to be a sandboxed environment. However, the vm module in Node.js provides only contextual isolation, not security isolation—meaning attackers can easily escape the sandbox and access the main process context.

Compounding this issue is the absence of cross-origin protections on the HTTP endpoint. Without proper CORS restrictions, any website can make requests to the local development server, enabling cross-origin attacks where a malicious webpage can execute arbitrary code on the developer's machine.

Root Cause

The root cause of this vulnerability is twofold. First, the package relies on vm.runInNewContext for code execution isolation, which the Node.js VM API Documentation explicitly warns against using for security purposes. Second, the HTTP endpoint lacks Cross-Origin Resource Sharing (CORS) protections, allowing any external website to interact with the local development server and submit malicious code for execution.

Attack Vector

The attack requires network-adjacent access, where an attacker can reach the local development server. The most practical attack scenario involves a developer visiting a malicious website while their NestJS application with devtools integration is running. The malicious website can then make cross-origin HTTP requests to the local endpoint, submitting arbitrary JavaScript code that escapes the ineffective sandbox and executes with the full privileges of the Node.js process.

The attacker sends a crafted JSON payload to the /inspector/graph/interact endpoint containing JavaScript code designed to break out of the vm sandbox. Once escaped, the attacker gains full control over the developer's machine with the same privileges as the Node.js process.

Detection Methods for CVE-2025-54782

Indicators of Compromise

  • Unexpected HTTP requests to /inspector/graph/interact endpoint from external origins
  • Network connections from Node.js processes to unusual external IP addresses
  • Unusual child processes spawned by the Node.js development server
  • Suspicious file system modifications in the developer's home directory or project folders

Detection Strategies

  • Monitor web server logs for requests to /inspector/graph/interact with unusual payloads or external referer headers
  • Implement network traffic analysis to detect cross-origin requests to local development servers
  • Use endpoint detection tools to identify unexpected process spawning from Node.js applications
  • Deploy SentinelOne Singularity to detect and alert on anomalous process behaviors and code execution patterns

Monitoring Recommendations

  • Enable verbose logging on development servers to capture all incoming requests and their origins
  • Monitor for child processes spawned by Node.js that execute system commands
  • Track outbound network connections from development environments for data exfiltration attempts
  • Implement browser security extensions that restrict cross-origin requests to localhost

How to Mitigate CVE-2025-54782

Immediate Actions Required

  • Upgrade @nestjs/devtools-integration to version 0.2.1 or later immediately
  • Disable devtools integration in any environment accessible from untrusted networks
  • Audit your package.json and package-lock.json for vulnerable versions of the affected package
  • Review development server configurations to ensure they are not exposed beyond localhost

Patch Information

The vulnerability has been fixed in version 0.2.1 of the @nestjs/devtools-integration package. The fix addresses both the unsafe sandbox implementation and adds proper cross-origin protections to prevent malicious websites from exploiting the endpoint. Users should update their dependencies immediately by running their package manager's update command. See the GitHub Security Advisory for complete details on the fix.

Workarounds

  • Completely remove or disable the @nestjs/devtools-integration package until you can upgrade
  • Configure firewall rules to block external access to development server ports
  • Use browser profiles without saved sessions for untrusted web browsing while developing
  • Implement a reverse proxy with strict CORS policies in front of development servers
bash
# Upgrade to patched version
npm update @nestjs/devtools-integration

# Or explicitly install the fixed version
npm install @nestjs/devtools-integration@0.2.1

# Verify installed version
npm list @nestjs/devtools-integration

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechNestjs

  • SeverityCRITICAL

  • CVSS Score9.4

  • EPSS Probability22.12%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-77
  • Technical References
  • GitHub PoC Repository

  • GitHub Starter Template

  • Node.js VM API Documentation

  • Socket.dev Blog Analysis
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33011: NestJS Nest Auth Bypass Vulnerability

  • CVE-2026-2293: NestJS Fastify Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English