Skip to content
CriticalVulnerability

GHSA-q5f4-99jv-pgg5: n8n has Prototype Pollution in XML Webhook Body Parser that Leads to RCE

Published
Record updated
View JSON
Affected
  • n8n >= 2.17.0, < 2.17.4, fixed in 2.17.4, released April 22, 2026, 7 days before disclosure
  • n8n >= 2.18.0, < 2.18.1, fixed in 2.18.1, released April 22, 2026, 7 days before disclosure
  • n8n < 1.123.32, fixed in 1.123.32, released April 22, 2026, 7 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.9%

Summary

A flaw in the `xml2js` library, used by n8n's webhook handler to parse XML request bodies, allows prototype pollution through a crafted XML payload. An authenticated user with permission to create or modify workflows can chain this with the Git node's SSH operations to achieve remote code execution on the n8n host.

Mitigation

The issue is fixed in n8n versions 1.123.32, 2.17.4, and 2.18.1; users should upgrade to one of these or later. If upgrading is not immediately possible, limit workflow creation and editing permissions to fully trusted users only, noting this is a short-term measure that does not fully remediate the risk.