{"id":"CVE-2026-42231","aliases":["CVE-2026-42231","GHSA-q5f4-99jv-pgg5"],"related":[],"kind":"vulnerability","state":"published","title":"n8n: Prototype Pollution in XML Webhook Body Parser Leads to RCE","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Impact\nA 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.\n\n## Patches\nThe 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.\n\n## Workarounds\nIf upgrading is not immediately possible, administrators should consider the following temporary mitigations:\n- Limit workflow creation and editing permissions to fully trusted users only.\n\nThese workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.\n\n---\nn8n has adopted CVSS 4.0 as primary score for all security advisories. CVSS 3.1 vector strings are provided for backwards compatibility.\n\nCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-04-29T21:25:02.000Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":9.4,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":9.4,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":"< 1.123.32","status":"affected"},{"version":">= 2.17.0, < 2.17.4","status":"affected"},{"version":">= 2.18.0, < 2.18.1","status":"affected"}],"vendor":"n8n-io","product":"n8n","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.123.32"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.18.0","status":"affected","fixed":"2.18.1"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.17.0","status":"affected","fixed":"2.17.4"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.123.32"},{"status":"affected","introduced":"2.17.0","fixed":"2.17.4"},{"status":"affected","version":"2.18.0"}],"vendor":"n8n","product":"n8n","cpe":"cpe:2.3:a:n8n:n8n:*:*:*:*:enterprise:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-q5f4-99jv-pgg5","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42231","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-05-04T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42231","url":"https://www.cve.org/CVERecord?id=CVE-2026-42231","licence":"CVE Terms of Use","modified":"2026-05-05T03:56:35.371Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q5f4-99jv-pgg5","url":"https://github.com/advisories/GHSA-q5f4-99jv-pgg5","licence":"CC-BY-4.0","modified":"2026-05-08T01:51:03.312Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42231","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42231","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:20.553Z","epss":{"score":0.00864,"percentile":0.59707,"date":"2026-12-01T12:00:22.000Z"}}