CVE-2026-72775
JSON

5.8medium

n8n before 1.123.67 SQL Injection via PostgresTrigger Node

Severity
5.8medium CVSS:4.0 by VulnCheck
Exploit likelihood
0.32% (higher than 27% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-jqwr-vx3p-r266

Description

n8n before 1.123.67, 2.31.5, and 2.32.1 contains a SQL injection vulnerability in the PostgresTrigger node, which interpolates user-supplied identifier parameters (channel, function, and trigger names) into SQL statements without proper escaping. An authenticated user can inject arbitrary SQL executed against the connected PostgreSQL database with the configured credential's privileges, allowing full read and write access.

Affected

Product or packageVersionsReported by
n8n-io n8nbefore 1.123.67, from 2.32.0 before 2.32.1, from 2.0.0-rc.0 before 2.31.5
Not affected: 1.123.67, 2.32.1, 2.31.5
CVE List
n8n (npm)before 1.123.67, from 2.32.0 before 2.32.1, from 2.0.0-rc.0 before 2.31.5GitHub Advisory Database
n8n n8nbefore 1.123.67, from 2.31.0 before 2.31.5, 2.32.0NVD

All scores

VulnCheck5.8medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/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 before 1.123.67, 2.31.5, and 2.32.1 contains a SQL injection vulnerability in the PostgresTrigger node, which interpolates user-supplied identifier parameters (channel, function, and trigger names) into SQL statements without proper escaping. An authenticated user can inject arbitrary SQL executed against the connected PostgreSQL database with the configured credential's privileges, allowing full read and write access.

GitHub Advisory Database

Impact

The Postgres Trigger node interpolated user-supplied identifier parameters (channel, function, and trigger names) into SQL statements without proper escaping, so an authenticated user could inject arbitrary SQL executed against the connected PostgreSQL database with the configured credential's privileges.

Successful exploitation allows full read and write access to the connected PostgreSQL database.

Patches

The issue has been fixed in n8n versions 1.123.67, 2.31.5 and 2.32.1. Users should upgrade to these versions or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Restrict n8n instance access to fully trusted users only.
  • Disable the PostgresTrigger node by adding n8n-nodes-base.postgresTrigger to the NODES_EXCLUDE environment variable.
  • Ensure PostgreSQL credentials used with n8n are configured with the minimum required privileges and do not use SUPERUSER roles.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

NVD (es)

n8n antes de 1.123.67, 2.31.5 y 2.32.1 contiene una vulnerabilidad de inyección SQL en el nodo PostgresTrigger, que interpola parámetros de identificador proporcionados por el usuario (nombres de canal, función y disparador) en sentencias SQL sin el escape adecuado. Un usuario autenticado puede inyectar SQL arbitrario ejecutado contra la base de datos PostgreSQL conectada con los privilegios de la credencial configurada, permitiendo acceso completo de lectura y escritura.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-72775 changed 2026-10-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-jqwr-vx3p-r266 changed 2026-08-12CC-BY-4.0
NVDCVE-2026-72775 changed 2026-10-29Public domain