Advisory

GHSA-g9hg-qhmf-q45m

Also known as: 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.

> Thank you to the following researchers for their reports and contributions:
> * Raymond (Veria Labs)
> * Gavin Zhong, <[email protected]> & Shuyang Wang, <[email protected]>.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-09-08 21:14 UTC
Modified
2025-09-26 17:07 UTC

Affected packages and fixes

@modelcontextprotocol/inspector

npm · All systems

Affected

  • introduced 0, fixed 0.16.6 (semver)

Fixed versions

0.16.6

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences