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.
Published: 2026-08-11
Score: 5.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This vulnerability allows an authenticated user to execute arbitrary SQL against the PostgreSQL database that a workflow accesses. The flaw is in the PostgresTrigger node, which concatenates user‑supplied identifiers—channel, function, and trigger names—directly into SQL statements without proper escaping. The weakness (CWE‑89) can be leveraged to read, modify, or delete data in the hooked database, potentially compromising the integrity and confidentiality of the application’s data store.

Affected Systems

The affected product is n8n, an open‑source workflow automation tool provided by n8n‑io. Vulnerable releases include any n8n version prior to 1.123.67, as well as the 2.31.5 and 2.32.1 stable releases. Users running these versions on servers that have a PostgresTrigger node configured are exposed to this risk.

Risk and Exploitability

The CVSS v3 score of 5.8 indicates medium severity. EPSS is not available, and the vulnerability is not listed in CISA’s KEV catalogue, suggesting no documented widespread exploitation at this time. Exploitation requires a valid authenticated session to the application; an attacker must first acquire or compromise legitimate credentials. Once authenticated, the attacker can inject arbitrary SQL that runs with the privileges of the database credentials configured in the node, allowing full read and write access to the connected database. This could lead to data theft, manipulation, or deletion, thereby impacting the confidentiality and integrity of the data stored in PostgreSQL.

Generated by OpenCVE AI on August 12, 2026 at 00:09 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade n8n to version 1.123.67 or newer, which replaces the vulnerable PostgresTrigger node logic.
  • Limit the PostgreSQL account used by the PostgresTrigger node to the least privileges required for the workflow, avoiding superuser or high‑privilege roles.
  • If the workflow does not need the PostgresTrigger node, remove or disable it to eliminate the attack vector.
  • Monitor database logs for unexpected or suspicious queries originating from n8n and implement input validation rules for any identifier parameters supplied by users.

Generated by OpenCVE AI on August 12, 2026 at 00:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 11 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 11 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
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.
Title n8n before 1.123.67 SQL Injection via PostgresTrigger Node
First Time appeared N8n
N8n n8n
Weaknesses CWE-89
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*
Vendors & Products N8n
N8n n8n
References
Metrics cvssV4_0

{'score': 5.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-11T17:50:19.590Z

Reserved: 2026-08-10T15:09:12.955Z

Link: CVE-2026-72775

cve-icon Vulnrichment

Updated: 2026-08-11T17:41:00.686Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-08-11T13:19:08.040

Modified: 2026-08-31T20:34:15.827

Link: CVE-2026-72775

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T10:45:03Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')