MCP Watch has a Critical Command Injection in cloneRepo allows Remote Code Execution (RCE) via malicious URL
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| kapilduraphe | mcp-watch | up to 0.1.2 | — | No fix listed | CNA |
| — | mcp-watch (npm) | up to 0.1.2 | — | No fix listed | GHSA-27m7-ffhq-jqrm |
- mcp-watch Vendorkapilduraphe Affected up to 0.1.2 Fixed in — No fix listed CNA
- mcp-watch (npm) Vendor— Affected up to 0.1.2 Fixed in — No fix listed GHSA-27m7-ffhq-jqrm
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:kapilduraphe:mcp_watch:*:*:*:*:*:node.js:*:* | up to 0.1.2 | Vulnerable | kapilduraphe |
- cpe:2.3:a:kapilduraphe:mcp_watch:*:*:*:*:*:node.js:*:* Versions up to 0.1.2 Vulnerable ·kapilduraphe
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2025-66401
- 2026-10-03 Alias added: GHSA-27m7-ffhq-jqrm
References
Sources
- CVE-2025-66401 · CVE Program
- CVE-2025-66401 · NVD
- FIRST EPSS
- GHSA-27m7-ffhq-jqrm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences