Description
n8n is an open source workflow automation platform. Prior to versions 1.123.32, 2.17.4, and 2.18.1, a flaw in the xml2js library used to parse XML request bodies in n8n's webhook handler allowed prototype pollution via a crafted XML payload. An authenticated user with permission to create or modify workflows could exploit this to pollute the JavaScript object prototype and, by chaining the pollution with the Git node's SSH operations, achieve remote code execution on the n8n host. This issue has been patched in versions 1.123.32, 2.17.4, and 2.18.1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| n8n-io | n8n | < 1.123.32, >= 2.17.0, < 2.17.4, >= 2.18.0, < 2.18.1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
rudSarkar/CVE-2026-42231 ★ 0 · May 7, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | n8n | < 1.123.32 | 1.123.32 | GHSA-q5f4-99jv-pgg5 |
| npm | n8n | >= 2.18.0, < 2.18.1 | 2.18.1 | GHSA-q5f4-99jv-pgg5 |
| npm | n8n | >= 2.17.0, < 2.17.4 | 2.17.4 | GHSA-q5f4-99jv-pgg5 |
Advisories 1
- WID-SEC-2026-1251 n8n: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 24, 2026