The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-53372

CVE-2025-53372: node-code-sandbox-mcp RCE Vulnerability

CVE-2025-53372 is a command injection vulnerability in node-code-sandbox-mcp that allows attackers to execute arbitrary system commands, bypassing Docker sandbox protection. This article covers technical details, impact, and fixes.

Updated: May 11, 2026

CVE-2025-53372 Overview

CVE-2025-53372 is a command injection vulnerability ([CWE-77]) in node-code-sandbox-mcp, a Node.js-based Model Context Protocol (MCP) server that spins up disposable Docker containers to execute arbitrary JavaScript. Versions prior to 1.3.0 pass unsanitized input parameters into a child_process.execSync call, allowing attackers to inject arbitrary system commands. Successful exploitation results in remote code execution under the server process's privileges on the host, bypassing the Docker sandbox that is supposed to isolate executed code. The maintainer fixed the issue in version 1.3.0.

Critical Impact

Attackers who can influence MCP tool parameters can break out of the Docker isolation boundary and execute commands directly on the host running the MCP server.

Affected Products

  • node-code-sandbox-mcp versions prior to 1.3.0
  • MCP server deployments that expose the sandbox to untrusted prompts or clients
  • AI agent integrations that route tool calls into the sandbox without parameter validation

Discovery Timeline

  • 2025-07-08 - CVE-2025-53372 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-53372

Vulnerability Analysis

The node-code-sandbox-mcp server exposes MCP tools that orchestrate Docker containers to run untrusted JavaScript. To launch and manage these containers, the server invokes the Docker CLI through child_process.execSync. The vulnerable code paths concatenate user-controlled parameters, such as image names or container identifiers, directly into the shell command string passed to execSync.

Because execSync runs the command through a shell, any shell metacharacter (;, &&, |, backticks, $()) embedded in the input is interpreted by the shell rather than treated as data. An attacker who controls a parameter routed to the vulnerable function can append arbitrary commands that execute outside the Docker container, on the host running the MCP server.

This defeats the central security promise of the project. Code that the user submits is meant to run inside a disposable container, but command injection allows attackers to skip the container entirely and run commands with the privileges of the Node.js server process.

Root Cause

The root cause is missing neutralization of special elements used in a command ([CWE-77]). The server concatenates input parameters into a shell command and executes the result with child_process.execSync instead of passing arguments as a discrete array to a non-shell API such as child_process.spawn with shell: false.

Attack Vector

The attack vector is network-based and requires user interaction, typically through an MCP client or AI agent that forwards attacker-influenced parameters to a sandbox tool. An attacker who can supply a crafted value for an injected parameter (for example, a malicious image tag or container reference) triggers execution of the embedded commands when the server processes the tool call.

javascript
// Patch reference: example update from examples/playwright.js in the fix commit
     name: 'run_js_ephemeral',
     arguments: {
       // Use the official MS playwright image
-      image: 'mcr.microsoft.com/playwright:v1.52.0-noble',
+      image: 'mcr.microsoft.com/playwright:v1.53.2-noble',
       code: `
         import { chromium } from 'playwright';

Source: GitHub commit e461a74

Detection Methods for CVE-2025-53372

Indicators of Compromise

  • Unexpected child processes (shells, package managers, network utilities) spawned by the Node.js process hosting node-code-sandbox-mcp.
  • Shell metacharacters (;, &&, |, `, $()) appearing in MCP tool parameters such as image names or container IDs.
  • Outbound network connections from the MCP host that do not match expected Docker registry traffic.
  • File system modifications outside of Docker container mount points originating from the server process.

Detection Strategies

  • Inspect MCP request logs for tool arguments containing shell metacharacters or non-standard Docker image references.
  • Monitor process trees where node parents /bin/sh -c and subsequent non-Docker commands.
  • Compare the installed node-code-sandbox-mcp version against 1.3.0 across deployments using package manifests.

Monitoring Recommendations

  • Enable command-line argument logging on hosts running MCP servers and forward to a centralized log pipeline.
  • Alert on first-seen binaries executed by the MCP server user account.
  • Track egress from MCP hosts and flag deviations from the registry and update endpoints they normally contact.

How to Mitigate CVE-2025-53372

Immediate Actions Required

  • Upgrade node-code-sandbox-mcp to version 1.3.0 or later in every environment where it is deployed.
  • Audit any MCP clients or AI agents that connected to vulnerable versions for evidence of injected commands.
  • Restrict network exposure of the MCP server to trusted clients only until the upgrade is verified.
  • Run the MCP server under a dedicated low-privilege account that cannot reach sensitive host resources.

Patch Information

The fix is published in version 1.3.0 of node-code-sandbox-mcp. Details are available in GitHub Security Advisory GHSA-5w57-2ccq-8w95 and the remediation commit e461a74.

Workarounds

  • If upgrading immediately is not possible, validate and reject any tool parameter containing shell metacharacters before forwarding to the MCP server.
  • Place the MCP server inside a restrictive sandbox (rootless container, seccomp, AppArmor) so a successful injection has limited host reach.
  • Disable or remove the affected tools from MCP server configuration until the patched release is deployed.
bash
# Upgrade to the patched release
npm install node-code-sandbox-mcp@1.3.0

# Verify the installed version
npm ls node-code-sandbox-mcp

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechNode Code Sandbox Mcp

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-77
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-5w57-2ccq-8w95
  • Latest CVEs
  • CVE-2026-8468: Elixir Plug Library DoS Vulnerability

  • CVE-2026-8295: simdjson Information Disclosure Vulnerability

  • CVE-2025-68421: Comarch ERP Optima Auth Bypass Vulnerability

  • CVE-2025-68420: Comarch ERP Optima Privilege Escalation
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