AAK-MCP-DOCUMENTDB-CVE-2026-18954-001: AWS Labs DocumentDB MCP Server aggregation-pipeline authorization bypass (below 1.0.12)
- Severity
- MEDIUM
- Category
- Supply Chain (
supply-chain) - Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py- Auto-fixable
- No.
- SARIF name
DocumentDbMcpAggregationAuthzBypass
What it detects
awslabs.documentdb-mcp-server before 1.0.12 has incorrect authorization in its aggregation-pipeline tool: write-capable pipeline stages bypass the read-only-mode enforcement, so an authenticated MCP client can perform inappropriate write operations on the connected database (CVE-2026-18954, CVSS 5.5). A pinnable PyPI artifact (latest 1.0.14) the pin scanner resolves from requirements.txt / pyproject.toml / uv.lock / .mcp.json; the fifth pin in the existing awslabs.*-mcp-server family.
How to fix
Upgrade awslabs.documentdb-mcp-server to >= 1.0.12 and pin it. Do not rely on read-only mode alone; confirm the server rejects write-capable aggregation stages when a client is scoped read-only.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-MCP-DOCUMENTDB-CVE-2026-18954-001
Limitations
Reads awslabs.documentdb-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-18954
- OWASP MCP Top 10: MCP02:2025 (Privilege Escalation via Scope Creep), 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-SUPPLY-01 (Runtime Package Fetch)
- CSA AI Controls Matrix (AICM): STA-08, IAM-01, DSP-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-DOCUMENTDB-CVE-2026-18954-001.md: the page then shows that text, with the registry reference appended under it.