6.0medium
n8n: Merge Node SQL Mode Prototype Pollution
- Severity
- 6.0medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.32% (higher than 26% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-9c38-2mcm-q7f7
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| n8n-io n8n | >= 2.26.0, < 2.26.2, < 2.25.7 | CVE List |
| n8n (npm) | from 2.26.0 before 2.26.2, before 2.25.7 | GitHub Advisory Database |
| n8n n8n | before 2.25.7, from 2.26.0 before 2.26.2 | NVD |
All scores
| GitHub_M | 6.0medium CVSS:4.0 | 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 |
| GitHub | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N |
| GitHub | medium CVSS:4.0 | 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 |
| NVD | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
The issue has been fixed in n8n versions 2.25.7, and 2.26.2. Users should upgrade to one of these versions or later to remediate the vulnerability.
Workarounds
If upgrading is not immediately possible, administrators should consider the following temporary mitigations:
- Limit workflow creation and editing permissions to fully trusted users only.
- Disable the Merge node by adding
n8n-nodes-base.mergeto theNODES_EXCLUDEenvironment variable.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
NVD (es)
n8n es una plataforma de automatización de flujos de trabajo de código abierto. Antes de las versiones 2.25.7 y 2.26.2, un usuario autenticado con permiso para crear o modificar flujos de trabajo podría contaminar la sandbox utilizada por el modo de consulta SQL del nodo Merge. Debido a que el contexto de la sandbox se almacenaba en caché y se reutilizaba en todas las ejecuciones de flujos de trabajo en la instancia, las mutaciones de prototipo introducidas por el flujo de trabajo de un usuario persistían en ejecuciones SQL de Merge posteriores pertenecientes a otros usuarios o proyectos. Esto permitía a un atacante con pocos privilegios interceptar datos de flujos de trabajo procesados por otros usuarios en la misma instancia. Este problema solo afecta a instancias n8n multiusuario donde más de un usuario tiene permiso para crear y ejecutar flujos de trabajo que contienen el nodo Merge en modo de consulta SQL. Esta vulnerabilidad está corregida en las versiones 2.25.7 y 2.26.2.
References
| https://github.com/n8n-io/n8n/security/advisories/GHSA-9c38-2mcm-q7f7 | mitigation, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-54311 | advisory | |
| https://github.com/n8n-io/n8n | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54311 changed 2026-06-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9c38-2mcm-q7f7 changed 2026-07-20 | CC-BY-4.0 |
| NVD | CVE-2026-54311 changed 2026-10-26 | Public domain |