Intel

AIKIDO-2026-552585

n8n-mcp is vulnerable to Insecure Direct Object Reference (IDOR)

CVE-2026-54052Published Jul 6, 2026
July 6, 2026

99

CVE Score

Critical

Insecure Direct Object Reference (IDOR)

Are you affected? Scan for Free

TL;DR

n8n-mcp stores automatic workflow version backups in a local workflow_versions table that lacked any per-tenant scoping. In multi-tenant HTTP deployments the n8n_workflow_versions tool queries rows by a predictable sequential integer ID without verifying that the calling tenant owns the record. An authenticated tenant can enumerate IDs to read, roll back, delete, or truncate other tenants' snapshots, which include full node definitions containing credential references and authorization headers. The fix adds an instance_id column, scopes every read, list, get, delete, rollback, and prune query to the calling instance, and clears legacy un-scoped backups during migration.

How do I fix this?

Upgrade the n8n-mcp library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and running in multi-tenant HTTP mode with ENABLE_MULTI_TENANT=true.

Package

Versions

2.22.5 - 2.56.0

Fixed in 2.56.1

Background info

n8n-mcp is vulnerable to Insecure Direct Object Reference (IDOR) in versions 2.22.5 - 2.56.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea