Understanding CVE-2025–68613: A Critical Remote Code Execution
An authenticated user could inject a malicious expression into a workflow node, which was evaluated without proper sandboxing, allowing arbitrary system commands to run with the n8n process's privileges. This could lead to full compromise of the n8n instance, including access to sensitive data and lateral movement.
Published on medium.com
At the time of writing, December 24, 2025, the cybersecurity community has been left shaken by the emergence of CVE-2025–68613, which has been described as high risk in the popular open-source workflow automation platform, n8n. Today, in this piece, an introduction will first be provided on what constitutes n8n…
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 evaluator lacked proper sandboxing, allowing access to Node.js global objects such as process and child_process.
Impact
An attacker with a valid account could execute arbitrary commands with the privileges of the n8n process, potentially leading to full server compromise, data breaches, and lateral movement.
What the attacker needed
Valid n8n account; ability to create or edit workflows
The fix
The vulnerability was fixed in versions 1.120.4, 1.121.1, and 1.122.0 by introducing stricter runtime restrictions in the expression evaluator.
How it was found
- Log in to the n8n web interface with valid credentials.
- Create a new workflow and add a Manual Trigger node and a Set node, connecting them.
- In the Set node, enable expression mode and enter a malicious expression that uses child_process to run a command.
- Execute the workflow or test the Set node.
- Observe the command output in the Set node's output panel.
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 people automate tasks by connecting apps. It lets users write small pieces of code called expressions to customise workflows. The bug meant that these expressions were not properly isolated, so a user could break out and run commands on the server, like a hacker would.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.