CVE-2026-113378
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."
Weakness
- CWE-78: Improper Neutralization of Special Elements used in an OS Command
- CWE-77: Improper Neutralization of Special Elements used in a Command
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-10-20 |
Timeline
- 2026-10-20Published by the CNA09:30 UTC
- 2026-10-20CISA SSVC decision recordedsame day
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| mcollina mcp-ripgrep | 0.1no fix listed0.2no fix listed0.3no fix listed0.4.0no fix listed | not listednot listednot listednot listed |
References
- https://gist.github.com/sandh0t/45fdee24a7907e0cd836aed26f2d5a7a/
- https://github.com/mcollina/mcp-ripgrep#security-considerations
- https://vuldb.com/cve/CVE-2026-113378
- https://vuldb.com/submit/990464
- https://vuldb.com/vuln/422653
- https://vuldb.com/vuln/422653/cti
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-113378'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-113378'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-113378'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-113378'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).