CVE-2025-58444 MCP Inspector is Vulnerable to Potential Command Execution via XSS When Connecting to an Untrusted MCP Server

High 8.6 Published Updated

An XSS vulnerability in the MCP Inspector allows attackers to execute arbitrary commands when connecting to malicious servers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-58444?

CVE-2025-58444 is a high-severity cross-site scripting vulnerability in modelcontextprotocol inspector, published on 8 Sep 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The MCP inspector is a developer tool for testing and debugging MCP servers. A cross-site scripting issue was reported in versions of the MCP Inspector local development tool prior to 0.16.6 when connecting to untrusted remote MCP servers with a malicious redirect URI. This could be leveraged to interact directly with the inspector proxy to trigger arbitrary command execution. Users are advised to update to 0.16.6 to resolve this issue.

Weakness: CWE-84

Which versions are affected by CVE-2025-58444?

2 open source packages ship an affected version, including @modelcontextprotocol/inspector.

PackageAffectedFixed in
@modelcontextprotocol/inspector npmAll versions0.16.6
@modelcontextprotocol/inspector npmAll versions0.16.6

How do I fix CVE-2025-58444?

Upgrade @modelcontextprotocol/inspector to 0.16.6 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-58444 being exploited?

There is no known exploitation of CVE-2025-58444 in the wild and no public exploit code.

Sources

Also known as GHSA-g9hg-qhmf-q45m.

Is CVE-2025-58444 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free