CVE-2026-54311 n8n: Merge Node SQL Mode Prototype Pollution

Medium 6.0 Published Updated

Authenticated users can pollute the Merge node SQL sandbox to intercept workflow data from other users on multi-user instances.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-54311?

CVE-2026-54311 is a medium-severity vulnerability in N8n N8n, published on 23 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

n8n is an open source workflow automation platform. Prior to 2.25.7 and 2.26.2, an authenticated user with permission to create or modify workflows could pollute the sandbox used by the Merge node's SQL Query mode. Because the sandbox context was cached and reused across all workflow executions on the instance, prototype mutations introduced by one user's workflow persist into subsequent Merge SQL executions belonging to other users or projects. This allowed a low-privileged attacker to intercept workflow data processed by other users on the same instance. This issue only affects multi-user n8n instances where more than one user has permission to create and execute workflows containing the Merge node in SQL Query mode. This vulnerability is fixed in 2.25.7 and 2.26.2.

Weakness: CWE-488

Which versions are affected by CVE-2026-54311?

4 open source packages ship an affected version, including n8n. It affects 1 product.

PackageAffectedFixed in
n8n npmAll versions2.25.7
n8n npmAll versions2.25.7
n8n npmFrom 2.26.02.26.2
n8n npmFrom 2.26.02.26.2

Products include N8n N8n.

How do I fix CVE-2026-54311?

Upgrade n8n to a fixed version for your release line: 2.25.7 or 2.26.2.

Is CVE-2026-54311 being exploited?

There is no known exploitation of CVE-2026-54311 in the wild and no public exploit code.

All N8n N8n vulnerabilities

Sources

Also known as GHSA-9c38-2mcm-q7f7, MINI-4gmq-mjp3-phq3, ROOT-APP-NPM-CVE-2026-54311.

Is CVE-2026-54311 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free