← back
CVE-2026-54311

n8n: Merge Node SQL Mode Prototype Pollution

CVSS 6 MEDIUMCWE-488
In short

A flaw in n8n's Merge node SQL mode allows an authenticated user to inject malicious code into a shared sandbox environment that persists across workflow executions. This lets attackers intercept and access data from other users' workflows on the same instance.

Technical detail

Prototype pollution vulnerability in n8n Merge node's SQL Query mode where cached sandbox context is reused across all workflow executions. An authenticated attacker with workflow creation permissions can mutate the prototype to persist malicious modifications, enabling unauthorized access to data processed by other users in subsequent executions on multi-user instances.

Summary generated and translated by AI from the 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.
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N
Affected products
n8n-io · n8n

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →