Code Injection in n8n - #VU146804
Published: September 2, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to improper control of dynamically managed code resources in the expression compiler sanitizer when processing expressions with a class field named __sanitize. A remote user can craft an expression that rebinds the sanitizer and reaches the Function constructor to execute arbitrary code.
On the backend, exploitation runs code in the n8n process. In the editor preview, a member\'s expression can run as JavaScript in the session of whoever opens the workflow.