9.4critical
n8n: Prototype Pollution in XML Webhook Body Parser Leads to RCE
- Severity
- 9.4critical CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.86% (higher than 59% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-q5f4-99jv-pgg5
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
| Product or package | Versions | Reported by |
|---|---|---|
| n8n-io n8n | < 1.123.32, >= 2.17.0, < 2.17.4, >= 2.18.0, < 2.18.1 | CVE List |
| n8n (npm) | before 1.123.32, from 2.18.0 before 2.18.1, from 2.17.0 before 2.17.4 | GitHub Advisory Database |
| n8n n8n | before 1.123.32, from 2.17.0 before 2.17.4, 2.18.0 | NVD |
All scores
| GitHub_M | 9.4critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
| GitHub | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
The issue has been fixed in n8n versions 1.123.32, 2.17.4, and 2.18.1. Users should upgrade to one of these versions or later to remediate the vulnerability.
Workarounds
If upgrading is not immediately possible, administrators should consider the following temporary mitigations:
- Limit workflow creation and editing permissions to fully trusted users only.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
n8n has adopted CVSS 4.0 as primary score for all security advisories. CVSS 3.1 vector strings are provided for backwards compatibility.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
NVD (es)
n8n es una plataforma de automatización de flujos de trabajo de código abierto. Antes de las versiones 1.123.32, 2.17.4 y 2.18.1, una falla en la biblioteca xml2js utilizada para analizar cuerpos de solicitud XML en el gestor de webhooks de n8n permitía la contaminación de prototipos mediante una carga útil XML manipulada. Un usuario autenticado con permiso para crear o modificar flujos de trabajo podría explotar esto para contaminar el prototipo de objeto de JavaScript y, encadenando la contaminación con las operaciones SSH del nodo Git, lograr la ejecución remota de código en el host de n8n. Este problema ha sido parcheado en las versiones 1.123.32, 2.17.4 y 2.18.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42231 changed 2026-05-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q5f4-99jv-pgg5 changed 2026-05-08 | CC-BY-4.0 |
| NVD | CVE-2026-42231 changed 2026-11-11 | Public domain |