CVE-2026-2130: mcp-maigret vulnerable to command injection
mcp-maigret, an MCP server that wraps the Maigret username-search tool, has a command injection in its `search_username` tool in versions before 1.0.13. A crafted username reaches a shell, so whoever controls the tool's arguments can run commands as the server's user. Upgrade to 1.0.13.
Published Feb 8, 2026 · Updated Feb 10, 2026 · Analysis Nov 1, 2026
What an attacker can do
The server in src/index.ts built its command, including the Docker arguments, as a concatenated string and ran it with exec(), which hands the string to a shell. The username argument was not validated, so shell metacharacters in it ran as extra commands.
The attacker needs to influence the arguments of a search_username call. With an MCP server, that usually means a prompt injection in content the agent reads, or a malicious user of a shared agent, since the model fills in the username. The CVSS vector (network, low privileges, no user interaction) fits that. The commands run with the privileges of the MCP server process, normally the developer's own account, so they can read files, environment variables and tokens, or change files. The advisory scores it medium (CVSS 3.1: 6.3).
Who is affected
mcp-maigret versions before 1.0.13, in the search_username tool. Check the version installed or referenced in your MCP client configuration:
npm ls -g mcp-maigretIf you launch it with npx, look at the pinned version in your MCP config file, since an unpinned npx call may fetch a cached older copy.
mcp-maigret
- Ecosystem
- npm
- Affected
- < 1.0.13
- Fixed in
- 1.0.13
- Check
npm ls mcp-maigret
How to fix it
Upgrade to mcp-maigret 1.0.13:
npm install -g [email protected]PR #10 replaces exec() with execFile(), so arguments are passed without a shell. It also adds validators: isValidUsername() allows only letters, digits, underscores, hyphens and periods, isValidUrl() requires HTTP or HTTPS and rejects shell metacharacters, and isValidTag() allows letters, digits, underscores and hyphens. Docker arguments are now an array. Reviewers noted that MAIGRET_REPORTS_DIR is still used in the volume mount without validation.
How to tell if you were hit
Check shell history, process listings and audit logs on the host that runs the server for child processes of the MCP server that are not maigret or docker, such as sh -c, curl or bash with odd arguments. Review the logged search_username arguments for ;, &, backticks, $(, or |. Beam records agent MCP tool calls and shell commands, and its rules flag risky ones, so a call with a username like that shows up in its record.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
A vulnerability was determined in BurtTheCoder mcp-maigret up to 1.0.12. This affects an unknown part of the file src/index.ts of the component search_username. Executing a manipulation of the argument Username can lead to command injection. The attack may be launched remotely. Upgrading to version 1.0.13 is able to mitigate this issue. This patch is called b1ae073c4b3e789ab8de36dc6ca8111ae9399e7a. Upgrading the affected component is advised.
Questions
- Is CVE-2026-2130 remotely exploitable?
The advisory says the attack may be launched remotely. In practice the attacker must control the
usernameargument of a tool call, for example through prompt injection or access to the agent that talks to the server.- What does the fix change?
It replaces
exec()withexecFile()so no shell parses the input, and adds allow-list validation for usernames, URLs and tags (PR #10, commit b1ae073).- Which versions are affected?
All mcp-maigret versions below 1.0.13. The advisory text names versions up to 1.0.12.
References
Read for this analysis:
- https://github.com/BurtTheCoder/mcp-maigret/pull/10
- https://github.com/advisories/GHSA-2g7v-hghf-grg4
- https://nvd.nist.gov/vuln/detail/CVE-2026-2130
- https://github.com/BurtTheCoder/mcp-maigret/issues/9
- https://github.com/BurtTheCoder/mcp-maigret/commit/b1ae073c4b3e789ab8de36dc6ca8111ae9399e7a
- https://github.com/BurtTheCoder/mcp-maigret
- https://github.com/BurtTheCoder/mcp-maigret/releases/tag/v1.0.13
- https://vuldb.com/?ctiid.344765
- https://vuldb.com/?id.344765
- https://vuldb.com/?submit.747171
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
