CVE-2025-66401
Kapilduraphe Mcp Watch vulnerability
MCP Watch is a comprehensive security scanner for Model Context Protocol (MCP) servers. In 0.1.2 and earlier, the MCPScanner class contains a critical Command Injection vulnerability in the cloneRepo method. The application passes the user-supplied githubUrl argument directly to a system shell via execSync without sanitization. This allows an attacker to execute arbitrary commands on the host machine by appending shell metacharacters to the URL.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Mcp Watch. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Kapilduraphe Mcp Watch runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/kapilduraphe/mcp-watch/security/advisories/GHSA-27m7-ffhq-jqrm · Exploit
- github.com/kapilduraphe/mcp-watch/commit/e7da78c5b4b960f8b66c254059ad9ebc544a91a6 · Patch
- nvd.nist.gov/vuln/detail/CVE-2025-66401
- github.com/advisories/GHSA-27m7-ffhq-jqrm
- nvd.nist.gov/vuln/detail/CVE-2025-66401
- cve.org/CVERecord?id=CVE-2025-66401
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.