Cross-site scripting in n8n - #VU140992
Published: August 5, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary script in a victim's browser.
The vulnerability exists due to improper neutralization of input during web page generation in the Form node completion page when rendering raw HTML with `respondWith` set to `redirect`. A remote user can configure a form response to include crafted HTML and script to execute arbitrary script in a victim's browser.
User interaction is required: a visitor must submit the public form for the script to execute same-origin with their session.