A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-54073

CVE-2025-54073: mcp-package-docs Command Injection RCE

CVE-2025-54073 is a command injection vulnerability in mcp-package-docs MCP Server that enables remote code execution through unsanitized input parameters. This article covers the technical details, exploitation risks, and mitigation.

Updated: May 19, 2026

CVE-2025-54073 Overview

CVE-2025-54073 is a command injection vulnerability in mcp-package-docs, a Model Context Protocol (MCP) server that gives large language models (LLMs) access to package documentation and language server protocol (LSP) capabilities. The server passes unsanitized user input directly to child_process.exec, allowing attackers to inject shell metacharacters such as |, >, and && into command strings. Successful exploitation results in arbitrary command execution under the privileges of the server process. The flaw is tracked as CWE-77: Improper Neutralization of Special Elements used in a Command.

Critical Impact

Attackers who can supply input to vulnerable MCP tool calls can achieve remote code execution on the host running the mcp-package-docs server, exposing developer workstations and CI/CD environments connected to LLM agents.

Affected Products

  • mcp-package-docs versions prior to 0.1.27
  • mcp-package-docs 0.1.27 (partial fix in commit cb4ad49615275379fd6f2f1cf1ec4731eec56eb9)
  • Upgrade to mcp-package-docs 0.1.28 is recommended

Discovery Timeline

  • 2025-07-18 - CVE-2025-54073 published to the National Vulnerability Database (NVD)
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-54073

Vulnerability Analysis

The mcp-package-docs server exposes MCP tools that look up package documentation across multiple language ecosystems. To retrieve documentation, the server builds shell command strings using parameters supplied by an MCP client and executes them through Node.js child_process.exec. Because exec spawns a shell, any unescaped metacharacter in the input is interpreted by /bin/sh. An attacker who controls a parameter such as a package name can append an arbitrary command using ;, |, &&, or backticks. The injected command runs with the same privileges as the MCP server process.

In practical deployments, MCP servers often run on developer machines or build agents alongside source code, SSH keys, and cloud credentials. A malicious package name returned by an upstream tool, a prompt-injection payload steered into the parameter, or a hostile MCP client can each trigger execution.

Root Cause

The root cause is the construction of shell command lines via string concatenation with untrusted input, then passing the result to child_process.exec rather than to child_process.execFile or child_process.spawn with an argument array. No allow-listing or shell escaping is performed on inputs before they are interpolated into the command string.

Attack Vector

Exploitation requires the attacker to influence an input parameter consumed by a vulnerable MCP tool call. Network reachability to the MCP transport plus user interaction by an LLM agent that invokes the tool are sufficient to trigger the flaw. The vulnerability is particularly relevant in agentic workflows where untrusted content (web pages, repository contents, third-party tool output) is fed into prompts that drive tool calls.

text
// Patch context from commit cb4ad49615275379fd6f2f1cf1ec4731eec56eb9 (tsconfig.json)
 {
   "compilerOptions": {
     "target": "ES2022",
-    "module": "Node16",
-    "moduleResolution": "Node16",
+    "module": "node16",
+    "moduleResolution": "node16",
+    "lib": ["ES2022"],
     "outDir": "./build",
     "rootDir": "./src",
     "strict": true,
     "esModuleInterop": true,
     "skipLibCheck": true,
-    "forceConsistentCasingInFileNames": true
+    "forceConsistentCasingInFileNames": true,
+    "allowSyntheticDefaultImports": true
   },
   "include": ["src/**/*"],
   "exclude": ["node_modules"]

Source: GitHub Commit cb4ad49. The full patch removes unsafe exec usage in the tool handlers; the snippet above shows the accompanying build configuration change shipped with the fix.

Detection Methods for CVE-2025-54073

Indicators of Compromise

  • Unexpected child processes spawned by the Node.js process hosting mcp-package-docs, particularly shells such as sh, bash, or cmd.exe invoking commands unrelated to package lookups.
  • Outbound network connections from the MCP server host to attacker-controlled infrastructure shortly after MCP tool invocations.
  • New files written under user home directories, /tmp, or build workspaces immediately following an MCP lookup_* tool call.

Detection Strategies

  • Inventory MCP servers across developer endpoints and CI runners and flag any version of mcp-package-docs below 0.1.28.
  • Hunt for process trees where node is the parent of sh -c invocations containing shell metacharacters in the command line.
  • Correlate MCP transport logs (stdio or HTTP) with process creation events to identify tool calls that result in non-documentation processes.

Monitoring Recommendations

  • Enable command-line auditing on hosts that run MCP servers and forward events to a centralized analytics platform.
  • Alert on Node.js processes spawning interpreters such as curl, wget, powershell, or python without an established baseline.
  • Track package and dependency changes for MCP-related npm modules using software composition analysis (SCA) tooling.

How to Mitigate CVE-2025-54073

Immediate Actions Required

  • Upgrade mcp-package-docs to version 0.1.28 on every host where it is installed, including developer laptops, build agents, and shared MCP gateways.
  • Restart any LLM agent or IDE integration that previously loaded the vulnerable server so the patched binary is loaded.
  • Review process and authentication logs for the period prior to upgrade for signs of injected commands.

Patch Information

The vulnerability was first addressed in commit cb4ad49615275379fd6f2f1cf1ec4731eec56eb9, released as version 0.1.27. The maintainer recommends upgrading to version 0.1.28, which contains the complete fix. See the GitHub Security Advisory GHSA-vf9j-h32g-2764 and the v0.1.28 release notes for full details.

Workarounds

  • Disable or uninstall mcp-package-docs until the upgrade is applied, especially in environments where LLM agents process untrusted content.
  • Restrict the MCP server to run under a least-privileged user account with no access to source repositories, SSH keys, or cloud credentials.
  • Apply prompt-injection mitigations in upstream LLM agents to limit attacker influence over tool-call parameters.
bash
# Upgrade the package to the fixed release
npm install -g mcp-package-docs@0.1.28

# Verify the installed version
npm list -g mcp-package-docs

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMcp Package Docs

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.71%

  • 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
  • Equixly Blog Post

  • GitHub Advisory GHSA-3q26-f695-pp76

  • GitHub Advisory GHSA-5w57-2ccq-8w95

  • GitHub Advisory GHSA-gjv4-ghm7-q58q

  • GitHub Commit Reference

  • GitHub Release v0.1.27

  • GitHub Release v0.1.28

  • GitHub Security Advisory GHSA-vf9j-h32g-2764

  • Invariant Labs Blog Analysis
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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