CVE-2026-113378 Details
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."
A command injection vulnerability has been identified in the mcollina mcp-ripgrep project, specifically in versions through 0.4.0. The issue arises in the Advanced Search Tool component, within an unknown function in the file src/index.ts. The vulnerability is caused by the unsanitized handling of the fileType argument, which allows for OS command injection. This flaw requires a local attack vector and has been publicly disclosed, with an exploit available for use.
To address this vulnerability, it is recommended to sanitize the fileType input to ensure it only contains valid characters, and to avoid using 'child_process.spawn' with 'shell: true' and untrusted input. Instead, pass arguments as a separate array with 'shell: false' to prevent shell interpretation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 20, 2026CISA-ADP
Assessed Oct 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/sandh0t/45fdee24a7907e0cd836aed26f2d5a7a/ | [email protected] | ExploitTechnical Analysis |
| https://github.com/mcollina/mcp-ripgrep#security-considerations | [email protected] | Vendor |
| https://vuldb.com/cve/CVE-2026-113378 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/990464 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/422653 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/422653/cti | [email protected] | AdvisoryPermission Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | [email protected] |
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mcollina mcp-ripgrep | <= 0.4.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 20, 2026 | CVE Modified | CISA-ADP |
| Oct 20, 2026 | New CVE Received | [email protected] |
Volerion