Prototype pollution in n8n - #VU141003
Published: August 5, 2026
Vulnerability details
The vulnerability allows a remote user to escape the sandbox and access the host's global object.
The vulnerability exists due to improper control of prototype modification in the JavaScript Code node VM sandbox when executing Code node workflows. A remote user can pollute sandbox Function.prototype to recover a reference to the host's globalThis and access the host's global object.
Exploitation requires the ability to create and execute workflows, and the full exploit chain depends on specific modules being available as allowlisted imports in the deployment configuration.