NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Other MCP servers and tools

CVE-2026-7446: mcp-server-semgrep has a Command Injection issue

mediumCVSS 4.0 5.5 · 3.1 7.3GHSA-86hp-qxqp-w9wv

mcp-server-semgrep 1.0.0 passes tool arguments into an OS command without neutralising them. Calls to analyze_results, filter_results, export_results, compare_results, scan_directory or create_rule can run injected commands. The exploit is public. Upgrade to 1.0.1.

Published Apr 30, 2026 · Updated May 6, 2026 · Analysis Oct 28, 2026

What an attacker can do

The MCP interface in src/index.ts handles six tools: analyze_results, filter_results, export_results, compare_results, scan_directory and create_rule. The advisory says manipulating the ID argument leads to OS command injection (CWE-77). The shell receives text the caller controls.

The tool runs with the permissions of the MCP server process, which on a developer machine is usually the developer's own account. Anyone who can make a tool call can run commands there: a connected AI client acting on injected instructions in scanned code, a compromised client, or any network caller if the server is exposed. CVSS 3.1 rates it 7.3 and 4.0 rates it 5.5, with network access, no privileges and no user interaction.

The NVD-style description states the exploit is public and may be used. Whether it is used in attacks is not stated, and the entry is not in CISA's known-exploited catalog.

Who is affected

The npm package mcp-server-semgrep at 1.0.0 and earlier (VetCoders). Any MCP client configuration that launches this server is affected.

npm ls -g mcp-server-semgrep

Check your MCP client config files for entries that start it, for example via npx.

mcp-server-semgrep

Ecosystem
npm
Affected
<= 1.0.0
Fixed in
1.0.1
Check
npm ls mcp-server-semgrep

How to fix it

Upgrade to mcp-server-semgrep 1.0.1:

npm install -g [email protected]

The patch is commit 141335d, merged in pull request 15, and is the v1.0.1 release. If you launch it through npx, pin the version in your MCP client config. No workaround is listed. Until you upgrade, remove the server from your client config.

How to tell if you were hit

Check MCP server logs and shell history for tool calls to scan_directory, create_rule, export_results and the other named tools with arguments that contain shell metacharacters (;, &&, |, $(, backticks). Look for unexpected child processes spawned by the node process running the server. Beam records MCP tool calls and the shell commands agents run, so a call with an injected ID shows up there.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

A vulnerability was detected in VetCoders mcp-server-semgrep 1.0.0. This affects the function analyze_results/filter_results/export_results/compare_results/scan_directory/create_rule of the file src/index.ts of the component MCP Interface. The manipulation of the argument ID results in os command injection. The attack can be executed remotely. The exploit is now public and may be used. Upgrading to version 1.0.1 is able to mitigate this issue. The patch is identified as 141335da044e53c3f5b315e0386e01238405b771. It is advisable to upgrade the affected component.

Questions

Which tools are affected?

analyze_results, filter_results, export_results, compare_results, scan_directory and create_rule, through the ID argument.

Is there a public exploit?

The advisory says the exploit is public and may be used. It does not say it is exploited in attacks, and it is not in the CISA catalog.

What is the patched version?

mcp-server-semgrep 1.0.1. Version 1.0.0 and earlier are affected, per the advisory.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Other MCP servers and tools vulnerabilities

All Other MCP servers and tools entries