CVE-2026-7446: mcp-server-semgrep has a Command Injection issue
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-semgrepCheck 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
Read for this analysis:
- https://github.com/advisories/GHSA-86hp-qxqp-w9wv
- https://github.com/VetCoders/mcp-server-semgrep/issues/12
- https://nvd.nist.gov/vuln/detail/CVE-2026-7446
- https://github.com/VetCoders/mcp-server-semgrep/pull/15
- https://github.com/VetCoders/mcp-server-semgrep/commit/141335da044e53c3f5b315e0386e01238405b771
- https://github.com/VetCoders/mcp-server-semgrep
- https://github.com/VetCoders/mcp-server-semgrep/releases/tag/v1.0.1
- https://vuldb.com/submit/804100
- https://vuldb.com/vuln/360187
- https://vuldb.com/vuln/360187/cti
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 entriesCVE-2026-102943
Dagu MCP DAG specification read bypasses path containment and workspace isolation
medium6.5Nov 10, 2026CVE-2026-102610
fast-agent: `fast-agent serve` binds HTTP to 0.0.0.0 with no authentication by default; with --shell this is unauthenticated remote command execution
medium6.4Nov 9, 2026CVE-2026-63655
tsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS
high7.5Nov 9, 2026CVE-2026-76892
tsParticles: Malformed JSON requests can terminate the @tsparticles/mcp-server HTTP process
high8.7Nov 9, 2026CVE-2026-76893
tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients
medium6.9Nov 9, 2026CVE-2026-77604
Code Graph RAG: MCP paginated read_file path traversal / arbitrary file read
high7.5Nov 9, 2026
