n8n: CVE-2025–68613
n8n versions 0.211.0 through 1.120.3 evaluate user-supplied workflow expressions in an insecure context, allowing an authenticated attacker to execute arbitrary JavaScript and system commands with the privileges of the n8n process. This could lead to data breaches, service disruption, or full system compromise.
medium.com
Published on medium.com
n8n is an open-source workflow automation platform designed to visually connect applications and services for task automation. Users build workflows composed of nodes, with each node representing an action such as making an API request, processing data, or sending an email. n8n is frequently used to automate…
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
Impact
An authenticated attacker could execute system-level commands with the privileges of the n8n process, potentially leading to data breaches, service disruptions, or full system compromise.
What the attacker needed
Valid n8n account credentials; access to the n8n web interface
The fix
The vulnerability was fixed in versions 1.120.4, 1.121.1, and 1.122.0; users should upgrade to one of these patched versions.
How it was found
- Log in to the n8n web interface with valid credentials.
- Start a new workflow and add a Manual Trigger node.
- Add an Edit Fields (Set) node connected to the Manual Trigger.
- Add a field, set its value to the exploit expression, and click Execute step to run a command.
- Replace the command with other commands such as ls or cat flag.txt and execute again.
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 build automated workflows by connecting different apps. It lets users write small pieces of code (expressions) to process data, but it did not properly isolate that code from the rest of the system. This meant anyone with a login could write a special expression that ran commands on the server, not just processed data.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.