CVE-2026-54310
JSON

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 packageVersionsReported by
n8n-io n8n>= 2.26.0, < 2.26.2, < 2.25.7CVE List
n8n (npm)from 2.26.0 before 2.26.2, before 2.25.7GitHub Advisory Database
n8n n8nbefore 2.25.7, from 2.26.0 before 2.26.2NVD

All scores

GitHub_M6.5medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
GitHub9.9medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
NVD9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Classification

CWE-89

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.timescaleDb to the NODES_EXCLUDE environment 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

Sources

SourceRecordLicence
CVE ListCVE-2026-54310 changed 2026-06-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-c37g-w77q-m4vp changed 2026-07-20CC-BY-4.0
NVDCVE-2026-54310 changed 2026-10-26Public domain