6.5medium
n8n: SQL Injection in Postgres v1/TimesclaeDB Nodes
- Severity
- 6.5medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.39% (higher than 35% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-c37g-w77q-m4vp
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 supply a crafted parameters to the TimescaleDB and/or legacy Postgres v1 node's allowing arbitrary SQL to be injected and executed against the connected database within the privileges of the configured database account. 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.5medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H |
| GitHub | 9.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H |
| NVD | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
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 supply a crafted parameters to the TimescaleDB and/or legacy Postgres v1 node's allowing arbitrary SQL to be injected and executed against the connected database within the privileges of the configured database account. 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 supply a crafted parameters to the TimescaleDB and/or legacy Postgres v1 node's allowing arbitrary SQL to be injected and executed against the connected database within the privileges of the configured database account.
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 Postgres and TimescaleDB node by adding
n8n-nodes-base.postgres,n8n-nodes-base.timescaleDbto 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 proporcionar parámetros manipulados al nodo de TimescaleDB y/o Postgres v1 heredado, permitiendo que se inyectara y ejecutara SQL arbitrario contra la base de datos conectada dentro de los privilegios de la cuenta de base de datos configurada. Esta vulnerabilidad está corregida en las versiones 2.25.7 y 2.26.2.
References
| https://github.com/n8n-io/n8n/security/advisories/GHSA-c37g-w77q-m4vp | mitigation, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-54310 | advisory | |
| https://github.com/n8n-io/n8n | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54310 changed 2026-06-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c37g-w77q-m4vp changed 2026-07-20 | CC-BY-4.0 |
| NVD | CVE-2026-54310 changed 2026-10-26 | Public domain |