Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to n8n instance
-
DeliveryAccess or create workflow with PostgresTrigger node
-
ExploitInject SQL payload into identifier parameter field
-
ExecutionExecute or trigger the workflow
-
PersistArbitrary SQL runs on PostgreSQL as configured credential
-
ImpactExfiltrate or modify full database contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to hold a valid n8n account with sufficient permissions to create or modify workflows (PR:L). The PostgresTrigger node must be present and executable within at least one workflow accessible to the attacker - this is the AT:P condition reflected in the CVSS 4.0 vector. The vulnerable parameters are the channel name, function name, and trigger name fields within that node. No special OS-level access, network positioning, or non-default n8n configuration beyond workflow access is required. Exploitation is limited by: (1) the requirement for a valid authenticated session in n8n; (2) the need for the PostgresTrigger node to be reachable in a workflow the attacker can trigger or edit; and (3) the database impact ceiling is bounded by the privileges of the PostgreSQL credential configured in n8n - if that credential is scoped read-only or to a single schema, the attacker's SQL execution is correspondingly constrained. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H) scores 5.8 due to the AT:P condition - the PostgresTrigger node must be actively configured in at least one workflow. However, the subsequent-system impact is uniformly High across confidentiality, integrity, and availability against the PostgreSQL backend. EPSS data is not provided in the available intelligence, limiting probabilistic exploitation forecasting. No CISA KEV listing and no reported POC suggest opportunistic mass exploitation is not currently occurring, but the attack is low-complexity once authenticated access is obtained. The primary risk moderator is PR:L: an attacker must hold a valid n8n account. In multi-tenant or enterprise n8n deployments where non-admin users can create or modify workflows, this is a realistic threat path. The scope-change to PostgreSQL is the critical severity multiplier - a database backing sensitive business data could be fully read, modified, or corrupted. CVSS 3.1 (derived independently below) would rate this substantially higher than the 4.0 score suggests, because 3.1 does not discount for AT:P-equivalent conditions. |
| Exploit ScenarioDerived | An authenticated n8n user with workflow creation or editing rights opens a workflow containing a PostgresTrigger node and enters a crafted value in the channel, function, or trigger name field - such as a payload that appends a malicious SQL statement via comment or semicolon injection. When the workflow executes, n8n interpolates the unsanitized input directly into a SQL query sent to the connected PostgreSQL instance. The attacker can then exfiltrate all database tables, modify data, or execute database-level commands up to the full extent of the configured credential's privileges. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 11, 2026
SQL injection in n8n's PostgresTrigger node enables authenticated users to execute arbitrary SQL against connected PostgreSQL databases with the configured credential's full privileges. Affected versions span the n8n 1.x branch before 1.123.67, the 2.x branch before 2.31.5, and the 2.32.x branch before 2.32.1. Successful exploitation yields unrestricted read and write access to the backend PostgreSQL instance - a scope-change impact confirmed by the CVSS 4.0 SC:H/SI:H/SA:H rating - with no public exploit identified at time of analysis and no CISA KEV listing.
RemediationAI
Vendor-released patches are available: upgrade n8n to version 1.123.67 (for 1.x deployments), 2.31.5 (for 2.x deployments below 2.32.0), or 2.32.1 (for 2.32.x deployments), per the GitHub Security Advisory GHSA-jqwr-vx3p-r266. If immediate upgrade is not feasible, three mitigations are available with trade-offs. First, restrict n8n instance access to fully trusted users only - this limits the authenticated attacker pool but does not eliminate the vulnerability and may not be operationally viable in multi-user environments. Second, disable the PostgresTrigger node entirely by adding 'n8n-nodes-base.postgresTrigger' to the NODES_EXCLUDE environment variable - this prevents exploitation of this specific attack surface but breaks any workflows relying on PostgreSQL trigger-based event handling. Third, ensure PostgreSQL credentials configured in n8n are scoped to minimum required privileges and explicitly exclude SUPERUSER roles - this does not prevent exploitation but limits the blast radius by constraining what injected SQL can accomplish. The vendor explicitly notes these workarounds do not fully remediate the risk and should be treated as short-term measures only.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n (cpe:2.3:a:n8n-io:n8n) is a Node.js-based workflow automation platform distributed via npm. The PostgresTrigger node allows workflows to react to PostgreSQL LISTEN/NOTIFY events and database triggers. The root cause (CWE-89: SQL Injection) is that user-supplied identifier parameters - specifically the channel name, function name, and trigger name - are interpolated directly into dynamically constructed SQL strings without sanitization or parameterization. Because SQL identifiers (table names, function names, channel names) cannot be passed as bind parameters in standard PostgreSQL drivers, the node relied on string interpolation, creating the injection surface. The configured PostgreSQL credential governs the blast radius: if the credential holds superuser or broad schema privileges, the attacker inherits them entirely.
Know when N8n gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable injection via authenticated (PR:L) n8n session changes scope to PostgreSQL backend, yielding full C/I/A impact on that system.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger
An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
EUVD-2026-56101
GHSA-m6wx-qjxf-vr9v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB