AAK-MCP-AWSSECAGENT-CVE-2026-87913-001: awslabs security-agent-mcp-server: scan output written to an unverified S3 bucket (below 0.2.0)
- Severity
- MEDIUM
- Category
- Supply Chain (
supply-chain) - Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py- Auto-fixable
- No.
- SARIF name
AwsSecurityAgentMcpBucketOwnership
What it detects
AWS Security Agent MCP server (awslabs.security-agent-mcp-server, PyPI) before 0.2.0 does not verify that the S3 bucket it writes scan output to is owned by the caller's own account (CVE-2026-87913, MEDIUM 5.9). The bucket name is derived from a publicly known account identifier, so a third party who pre-registers that name receives the private source archive of every scanned workspace — including any credentials and infrastructure state the archive contains. Fixed in 0.2.0; treat < 0.2.0 (and unpinned) as exposed.
How to fix
Upgrade awslabs.security-agent-mcp-server to >= 0.2.0 and pin it. Upgrading is not sufficient on its own: it does not release a bucket name a third party has already registered, so confirm the scan output bucket in your account is owned by your account, and treat anything already written to it as disclosed.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-MCP-AWSSECAGENT-CVE-2026-87913-001
Limitations
Reads awslabs.security-agent-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
- CVE: CVE-2026-87913
- OWASP MCP Top 10: MCP04:2025 (Software Supply Chain Attacks & Dependency Tampering)
- OWASP Agentic Top 10: ASI02 (Tool Misuse and Exploitation), ASI04 (Agentic Supply Chain Vulnerabilities)
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-DATA-01
- CSA AI Controls Matrix (AICM): STA-08, DSP-10, IVS-04
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-AWSSECAGENT-CVE-2026-87913-001.md: the page then shows that text, with the registry reference appended under it.