Skip to main content

n8n CVE-2026-72775

| EUVDEUVD-2026-56101 MEDIUM
SQL Injection (CWE-89)
2026-08-11 VulnCheck GHSA-m6wx-qjxf-vr9v
5.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to n8n instance
  2. Delivery
    Access or create workflow with PostgresTrigger node
  3. Exploit
    Inject SQL payload into identifier parameter field
  4. Execution
    Execute or trigger the workflow
  5. Persist
    Arbitrary SQL runs on PostgreSQL as configured credential
  6. Impact
    Exfiltrate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n8n 0 <1.123.67
n8n 0 <2.32.1
n8n 0 <2.31.5

Affected Packages

npm n8n fix: 1.123.67, 2.31.5, 2.32.1

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

Vendor (VulnCheck) PRIMARY 5.8 MEDIUM
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
vuln.today AI 9.9 CRITICAL

Network-reachable injection via authenticated (PR:L) n8n session changes scope to PostgreSQL backend, yielding full C/I/A impact on that system.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

1
Patch available
Aug 11, 2026 - 13:17 EUVD

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

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Medium
popular self-hosted workflow automation platform, widely used by developers and SMBs
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

More in N8n

View all
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2026-21877 CRITICAL POC
9.9 Jan 08

n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with

CVE-2026-21858 CRITICAL POC
10.0 Jan 08

n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical

CVE-2026-1470 CRITICAL POC
9.9 Jan 27

n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft

CVE-2025-65964 CRITICAL POC
9.4 Dec 09

Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin

CVE-2026-33696 CRITICAL POC
9.4 Mar 25

A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti

CVE-2026-33660 CRITICAL POC
9.4 Mar 25

An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit

CVE-2025-55526 CRITICAL POC
9.1 Aug 26

n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w

CVE-2026-27493 CRITICAL POC
9.0 Feb 25

Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger

CVE-2025-56265 HIGH POC
8.8 Sep 08

An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac

CVE-2026-33665 HIGH POC
8.8 Mar 25

Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP

CVE-2023-27563 HIGH POC
8.8 May 10

The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy