Skip to content
CriticalVulnerability

CVE-2025-66401: MCP Watch command injection in cloneRepo via githubUrl

Identifier
CVE-2025-66401
Published
Record updated
View JSON
Affected
  • mcp-watch <= 0.1.2
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
2.2%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

MCP Watch, a security scanner for Model Context Protocol servers, contains a command injection flaw in versions 0.1.2 and earlier. The MCPScanner class's cloneRepo method passes the user-supplied githubUrl argument straight to a system shell via execSync without sanitization. An attacker can run arbitrary commands on the host by appending shell metacharacters to the URL.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.