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

CVE-2026-2130: mcp-maigret vulnerable to command injection

mediumCVSS 4.0 5.3 · 3.1 6.3GHSA-2g7v-hghf-grg4

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-maigret

If 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 username argument 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() with execFile() 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

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