Unpacking n8n RCE CVE-2025–68613
n8n's workflow expression evaluation system did not properly sandbox JavaScript expressions, allowing an authenticated user to escape the sandbox and execute system commands with the n8n process's privileges. This could lead to remote code execution on the server.
medium.com
Published on medium.com
If you work in tech, you know n8n. It’s the Swiss Army knife of workflow automation the glue connecting your SaaS apps, internal APIs, and databases.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the expression evaluation system did not correctly sandbox JavaScript execution, allowing access to the Node.js global scope.
Impact
An authenticated attacker could execute system-level commands with the privileges of the n8n process, leading to full remote code execution.
What the attacker needed
Authenticated user with basic access
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
n8n is a tool that lets you automate tasks by connecting apps. It lets you write small bits of JavaScript code inside double curly braces to process data. The bug is that this code was not properly isolated, so a logged-in user could write code that breaks out and runs commands on the server itself, like a remote control.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.