CVE-2026-72775

n8n before 1.123.67 SQL Injection via PostgresTrigger Node

Published Aug 11, 2026 CVSS 4.0 · 5.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:n8n:n8n:2.32.0:*:*:*:*:node.js:*:*
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-89

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:16 PM
Reserved
Aug 10, 2026, 3:09 PM
Status
Analyzed
Published
Aug 11, 2026, 1:19 PM
Modified
Oct 29, 2026, 9:17 PM