Arbitrary Command Injection Affecting mcp-server-semgrep package, versions <1.0.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.74% (83rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-MCPSERVERSEMGREP-16624721
  • published10 May 2026
  • disclosed30 Apr 2026
  • creditEternity

Introduced: 30 Apr 2026

CVE-2026-7446  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade mcp-server-semgrep to version 1.0.1 or higher.

Overview

mcp-server-semgrep is a MCP Server for Semgrep Integration - static code analysis with AI

Affected versions of this package are vulnerable to Arbitrary Command Injection via the analyze_results, filter_results, export_results, compare_results, scan_directory, or create_rule functions in the MCP Interface component when processing the ID argument. An attacker can execute arbitrary operating system commands by supplying crafted input remotely.

CVSS Base Scores

version 4.0
version 3.1