Skip to content

AAK-MCP-AMAZONMQ-CVE-2026-18655-001: Amazon MQ MCP Server broker-hostname SSRF exfiltrates credentials/tokens (below 2.0.24)

Severity
MEDIUM
Category
Supply Chain (supply-chain)
Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py
Auto-fixable
No.
SARIF name
AmazonMqMcpServerBrokerHostnameSsrf

What it detects

The Amazon MQ MCP Server (awslabs.amazon-mq-mcp-server) before 2.0.24 does not restrict the broker hostname its RabbitMQ broker-connection tools connect to, so a remote unauthenticated actor who injects a crafted broker hostname into the MCP client context (via prompt injection) can make the server send the Amazon MQ for RabbitMQ broker credentials or OAuth access tokens to an attacker-controlled endpoint (CVE-2026-18655; CVSS 4.0 7.1 / 3.1 6.5). Fourth awslabs.*-mcp-server pin in this family. Fixed in 2.0.24; treat < 2.0.24 (and unpinned) as exposed.

How to fix

Upgrade awslabs.amazon-mq-mcp-server to >= 2.0.24 and pin it. Restrict the broker hostname the RabbitMQ connection tools may reach to an allow-list, and never forward broker credentials / OAuth tokens to a caller-influenced endpoint.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-MCP-AMAZONMQ-CVE-2026-18655-001

Limitations

Reads awslabs.amazon-mq-mcp-server in requirements*.txt at any depth and, at the project root only, in pyproject.toml, Pipfile, package.json, .mcp.json, mcp.json, claude_desktop_config.json and the Pipfile.lock, poetry.lock, uv.lock, package-lock.json, pnpm-lock.yaml and yarn.lock lockfiles, taking the lowest version a range allows and reporting a reference that states no version. The dependency is not read when it is declared in a sub-directory manifest (services/api/pyproject.toml), in .cursor/mcp.json or .vscode/mcp.json, or in a lockfile format the reader does not parse (pdm.lock). A file over 2 MB, or a lockfile over 32 MiB, is not read. A declaration nested more than 64 levels deep in package.json, a TOML manifest or an MCP config (an MCP server more than 62) is still judged, and reported without a line; a lockfile entry keeps its line at any depth.

References


All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-AMAZONMQ-CVE-2026-18655-001.md: the page then shows that text, with the registry reference appended under it.