Cross-site scripting in n8n - CVE-2026-54301
Published: June 16, 2026
n8n
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary JavaScript in the n8n origin.
The vulnerability exists due to improper neutralization of input during web page generation in the Respond to Webhook node when serving binary content with an attacker-controlled Content-Type through a public webhook. A remote user can configure a webhook response to deliver crafted content to execute arbitrary JavaScript in the n8n origin.
User interaction is required, and the victim must visit the public webhook while authenticated to n8n.