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.
Fix
Patch, vendor advisory and mitigation references on NVD 1
- https://github.com/n8n-io/n8n/security/advisories/GHSA-jqwr-vx3p-r266 Mitigation, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 5.8 · n8nNVD modified 2026-10-23 19:10
Affected (CPE criteria) 2
cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*cpe:2.3:a:n8n:n8n:2.32.0:*:*:*:*:node.js:*:*
References 2
- https://github.com/n8n-io/n8n/security/advisories/GHSA-jqwr-vx3p-r266 Mitigation, Vendor Advisory
- https://www.vulncheck.com/advisories/n8n-before-sql-injection-via-postgrestrigger-node Third Party Advisory