n8n Prototype Pollution Vulnerability in Webhook XML Parser Leading to Remote Code Execution

Vulnerability

A prototype pollution vulnerability has been identified in n8n, an open-source workflow automation platform, prior to versions 1.123.32, 2.17.4, and 2.18.1. The issue arises from the xml2js library, which is used to parse XML request bodies in n8n's webhook handler. This vulnerability allows an authenticated user with permission to create or modify workflows to exploit a crafted XML payload, polluting the JavaScript object prototype. By chaining this pollution with the Git node's SSH operations, remote code execution can be achieved on the n8n host.

Impact

Exploitation of this vulnerability allows for prototype pollution, which can be leveraged to execute arbitrary code on the host running n8n.

Remediation

Users should upgrade to n8n versions 1.123.32, 2.17.4, or 2.18.1. If an immediate upgrade is not possible, consider limiting workflow creation and editing permissions to trusted users as a temporary mitigation.

Added: May 4, 2026, 7:20 PM
Updated: May 4, 2026, 7:20 PM

Vulnerability Rating

Custom Algorithm
spread
5.7
impact
7.5
exploitability
4.3
remediation
7.9
relevance
7.4
threat
0.0
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.