CVE-2025-66401
CRITICAL 9.8CVSS 3.1MCP Watch has a Critical Command Injection in cloneRepo allows Remote Code Execution (RCE) via malicious URL
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.
- Published
- 1 Dec 2025
- Last modified
- 18 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-78
- Also known as
- GHSA-27m7-ffhq-jqrm
- Sources
- NVDJSONOSV GHSA-27m7-ffhq-jqrmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | kapilduraphe | mcp_watchcpe:2.3:a:kapilduraphe:mcp_watch:*:*:*:*:*:node.js:*:* |
<= 0.1.2 | |
| OSV | npm | mcp-watch | <= 0.1.2 |
References
- https://github.com/kapilduraphe/mcp-watch/commit/e7da78c5b4b960f8b66c254059ad9ebc544a91a6 · Patch, WEB
- https://github.com/kapilduraphe/mcp-watch/security/advisories/GHSA-27m7-ffhq-jqrm · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-66401 · ADVISORY
- https://github.com/kapilduraphe/mcp-watch · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 1 Dec 2025)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 2 Dec 2025)