Advisories / npm / n8n / CVE-2026-42231
n8n has Prototype Pollution in XML Webhook Body Parser that Leads to RCE (CVE-2026-42231)
CVE-2026-42231 GHSA-q5f4-99jv-pgg5 Published 29 Apr 2026
Fixed in n8n 1.123.32 and 2.17.4 and 2.18.1.
$ npm install n8n@^1.123.32 $ npm install n8n@^2.17.4 $ npm install n8n@^2.18.1
Run the one for the major version you’re on: each fix stays within its release line.
Which versions are affected
| Package | Affected | Fixed in |
|---|---|---|
| n8n | < 1.123.32≥ 2.17.0, < 2.17.4≥ 2.18.0, < 2.18.1 | 1.123.322.17.42.18.1 |
Check a site from its project folder:
npm ls n8n
shows the installed version. Or paste the lock file into the lock file checker to check every package at once.
Timeline
- Advisory published, with a fix
Questions
Which version of n8n is safe from CVE-2026-42231?
2.18.1 and later. Versions affected: < 1.123.32, ≥ 2.17.0, < 2.17.4, ≥ 2.18.0, < 2.18.1.