Description
A security flaw has been discovered in mcollina mcp-ripgrep up to 0.4.0. Affected is an unknown function of the file src/index.ts of the component Advanced Search Tool. The manipulation of the argument fileType results in os command injection. The attack requires a local approach. The exploit has been released to the public and may be used for attacks. The real existence of this vulnerability is still doubted at the moment. The code's own escapeShellArg on sibling arguments (skipped only for fileType) indicates that this is a CWE-78 oversight, not a documented design. The project maintainer cites the documentation: "This MCP server executes shell commands using the ripgrep tool. While efforts have been made to safely escape arguments, use caution when providing input, as it runs commands on your machine."
Severity (CVSS)
| Base score | 4.8 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P |
| Provided by | CNA |
Weaknesses
- CWE-78 — OS Command Injection
- CWE-77 — Command Injection
Affected products
| Vendor | Product | Versions |
|---|---|---|
| mcollina | mcp-ripgrep | 0.1 [affected]; 0.2 [affected]; 0.3 [affected]; 0.4.0 [affected] |
References
- https://vuldb.com/vuln/422653 (vdb-entry technical-description)
- https://vuldb.com/vuln/422653/cti (signature permissions-required)
- https://vuldb.com/cve/CVE-2026-113378 (third-party-advisory)
- https://vuldb.com/submit/990464 (third-party-advisory)
- https://gist.github.com/sandh0t/45fdee24a7907e0cd836aed26f2d5a7a/ (exploit)
- https://github.com/mcollina/mcp-ripgrep#security-considerations (related)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 21 Oct 2026 07:04 UTC.