Vulnerabilities in pkg:npm/@modelcontextprotocol/inspector
PACKAGECVE-2025-58444 is a HIGH cross-site scripting vulnerability (CWE-84: Improper Neutralization of Encoded URI Schemes in a Web Page) affecting @modelcontextprotocol/inspector libraries in the npm ecosystem. The issue involves mcp inspector is vulnerable to potential command execution via xss when connecting to an untrusted mcp server. Remediation is available by upgrading affected packages to version 0.16.6.
pkg:npm/@modelcontextprotocol/inspector
Vulnerability advisories affecting package pkg:npm/@modelcontextprotocol/inspector. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-g9hg-qhmf-q45m | CVE-2025-58444 | HIGH | MCP Inspector is Vulnerable to Potential Command Execution via XSS When Connecting to an Untrusted MCP Server |
| GHSA-7f8r-222p-6f5g | CVE-2025-49596 | CRITICAL | MCP Inspector proxy server lacks authentication between the Inspector client and proxy |
CVE-2025-58444 at a Glance
How to Fix CVE-2025-58444
To remediate this vulnerability, upgrade all affected @modelcontextprotocol/inspector dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @modelcontextprotocol/inspector@0.16.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @modelcontextprotocol/inspector
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-58444, inspect your project dependencies using npm:
npm ls @modelcontextprotocol/inspector
Analyze the terminal output to locate any version of @modelcontextprotocol/inspector in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.16.6), your application is affected.
Note: The npm ls @modelcontextprotocol/inspector command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-84: Improper Neutralization of Encoded URI Schemes in a Web Page, where the web application improperly neutralizes user-controlled input for executable script disguised with uri encodings. In @modelcontextprotocol/inspector, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-58444 Affected @modelcontextprotocol/inspector Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@modelcontextprotocol/inspector
|
npm |
< 0.16.6
|
0.16.6
|
References
Frequently Asked Questions
What is CVE-2025-58444?
Which @modelcontextprotocol/inspector versions are affected?
What version fixes CVE-2025-58444?
Is @modelcontextprotocol/inspector affected?
What CWE is associated with CVE-2025-58444?
How can I check npm dependencies for CVE-2025-58444?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g9hg-qhmf-q45m",
"modified" : "2025-09-26T17:07:01Z",
"published" : "2025-09-08T21:14:23Z",
"aliases" : [ "CVE-2025-58444" ],
"summary" : "MCP Inspector is Vulnerable to Potential Command Execution via XSS When Connecting to an Untrusted MCP Server",
"details" : "An XSS flaw exists in the MCP Inspector local development tool when it renders a redirect URL returned by a remote MCP server. If the Inspector connects to an untrusted server, a crafted redirect can inject script into the Inspector context and, via the built-in proxy, be leveraged to trigger arbitrary command execution on the developer machine. Version 0.16.6 hardens URL handling/validation and prevents script execution.\n\n> Thank you to the following researchers for their reports and contributions:\n> * Raymond (Veria Labs)\n> * Gavin Zhong, <superboyzjc@gmail.com> & Shuyang Wang, <swang@obsidiansecurity.com>.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@modelcontextprotocol/inspector"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.16.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/modelcontextprotocol/inspector/security/advisories/GHSA-g9hg-qhmf-q45m"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-58444"
}, {
"type" : "WEB",
"url" : "https://github.com/modelcontextprotocol/inspector/commit/650f3090d26344a672026b737d81586595bb1f60"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/modelcontextprotocol/inspector"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/package/@modelcontextprotocol/inspector/v/0.16.6"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79", "CWE-84", "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-08T21:14:23Z",
"nvd_published_at" : "2025-09-08T22:15:34Z"
}
}