Skip to content
OpenAdvisories
Critical · 9.4 Public exploit CVE-2026-42231 EUVD-2026-27102GHSA-q5f4-99jv-pgg5

n8n: Prototype Pollution in XML Webhook Body Parser Leads to RCE

Published May 4, 2026 · Updated May 5, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
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

References