Skip to content
Heist/ feed
Medium

mcollina mcp-ripgrep Advanced Search Tool index.ts os command injection

Type: advisorySource: Official CVE List1 source record

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."

Announced Source revision 1
Original source ↗

CVE-2026-113378

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-113378

mcp-ripgrep

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "cpes": [
      "cpe:2.3:a:mcollina:mcp-ripgrep:*:*:*:*:*:*:*:*"
    ],
    "vendor": "mcollina",
    "modules": [
      "Advanced Search Tool"
    ],
    "product": "mcp-ripgrep",
    "versions": [
      {
        "status": "affected",
        "version": "0.1"
      },
      {
        "status": "affected",
        "version": "0.2"
      },
      {
        "status": "affected",
        "version": "0.3"
      },
      {
        "status": "affected",
        "version": "0.4.0"
      }
    ]
  }
]
Related CVEs
CVE-2026-113378

Source reference: /cveMetadata/cveId

Publisher severity

medium

Source reference: /containers/cna/metrics

Event
#55620 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement