Cross-site scripting in n8n - CVE-2026-118648
Published: October 14, 2026 / Updated: November 2, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary scripts on the n8n origin using another user's session.
The vulnerability exists due to failure to apply the sandbox content security policy in webhook response handling when returning error responses or certain responses without headers. A remote user can serve workflow-generated HTML containing malicious scripts through a webhook URL to execute arbitrary scripts on the n8n origin using another user's session.
Exploitation requires permission to create and activate workflows and another user to open the webhook URL.