Skip to content
RCE Write-up Intermediate

CVE-2025–68613: The Critical n8n Vulnerability Threatening 103,

The n8n workflow automation platform had insufficient sandbox isolation in its expression evaluation, allowing an authenticated user to escape the sandbox and execute arbitrary code on the server. An attacker with valid credentials could access the Node.js process object and run system commands, leading to full system compromise.

Dhanush N Follow

Published on infosecwriteups.com

Per the attack surface management platform Censys, there are 103,476 potentially vulnerable instances as of December 22, 2025. With proof-of-concept exploits already published and widespread internet exposure, this vulnerability represents an immediate and critical risk to organizations using n8n for workflow…

Dhanush N, on infosecwriteups.com

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 sandbox used to evaluate JavaScript expressions did not properly restrict access to the Node.js runtime, allowing escape via the process object.

Impact

An attacker could execute arbitrary code, access all stored credentials and environment variables, and pivot to connected systems, potentially leading to full system compromise.

What the attacker needed

Valid credentials; workflow creation rights

The fix

The vulnerability was fixed in versions 1.120.4, 1.121.1, and 1.122.0 by enhancing sandbox isolation.

How it was found

  1. Gain authenticated access to n8n with workflow creation rights.
  2. Create a workflow containing a malicious JavaScript expression designed to escape the sandbox.
  3. Execute the workflow so the expression accesses the Node.js process object.
  4. Use the process object to run arbitrary system commands, such as whoami, to confirm code execution.

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 lets people build automations using small code snippets called expressions. These are supposed to run in a safe, isolated box (a sandbox) so they cannot harm the server. The bug meant the box was not strong enough, so someone with a login could break out and run any command on the server, like a hacker with full control.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Dhanush N

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.