AAK-MCP-N8NMCP-CVE-2026-54052-001: n8n-MCP multi-tenant backup isolation bypass (n8n-mcp below 2.57.4)
- Severity
- CRITICAL
- Category
- Supply Chain (
supply-chain) - Scanner
agent_audit_kit/scanners/container_image_pins.py,agent_audit_kit/scanners/mcp_cve_pins_2026_07.py- Auto-fixable
- No.
- SARIF name
N8nMcpTenantIsolation
What it detects
n8n-MCP (n8n-mcp) in HTTP multi-tenant mode (ENABLE_MULTI_TENANT=true) does not isolate local workflow version-history backups per tenant: before 2.56.1 an authenticated tenant can read, delete, or destroy other tenants' workflow snapshots — including node definitions, credential references, and authorization headers (CVE-2026-54052, CVSS 9.9); before 2.57.4 a tenant can also reach default-scope workflow_versions backups from prior single-tenant deployments (CVE-2026-55608). Treat < 2.57.4 (and unpinned) as exposed.
How to fix
Upgrade n8n-mcp to >= 2.57.4 and pin it. Scope every backup read/write to the authenticated tenant.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-MCP-N8NMCP-CVE-2026-54052-001
Limitations
Reads n8n-mcp 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 (packages/app/package.json), in .cursor/mcp.json or .vscode/mcp.json, or in a lockfile format the reader does not parse (a Yarn 2+ yarn.lock). The ghcr.io/czlonkowski/n8n-mcp and ghcr.io/czlonkowski/n8n-mcp-railway images are read at a version tag (a docker run argument in an MCP config, an image: value, a Dockerfile FROM or Helm values); an untagged, latest or digest reference is not reported, whichever release it resolves to. 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-54052, CVE-2026-55608
- OWASP MCP Top 10: MCP04:2025 (Software Supply Chain Attacks & Dependency Tampering), MCP10:2025 (Context Injection & Over-Sharing)
- OWASP Agentic Top 10: ASI03 (Identity and Privilege Abuse), ASI04 (Agentic Supply Chain Vulnerabilities)
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-AUTH-01 (Missing Authentication)
- CSA AI Controls Matrix (AICM): IAM-01, DSP-07, STA-08
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-N8NMCP-CVE-2026-54052-001.md: the page then shows that text, with the registry reference appended under it.