##
**n8n** is a workflow automation platform used to integrate systems and services through visual flows and JavaScript expressions.
**CVE-2025-68613** is a **critical Remote Code Execution (RCE)** vulnerability, with **CVSS 9.9** , affecting multiple versions of n8n. The flaw occurs in the processing of JavaScript expressions in workflows in vulnerable versions that are not properly isolated. This allows **authenticated users with edit permissions to execute code outside the application's expected behavior**.
In practice, this flaw can be exploited to run commands on the server where n8n is running, using the application's own privileges. Affected versions range from **0.211.0** up to versions prior to the fixes applied in **1.120.4** , **1.121.1** and **1.122.0**.

> The flaw occurs **during creation and execution of workflows** , not before authentication.
### Step 1 — Authentication on the Platform
The first step is to log in to the n8n web interface with a valid user.
_ Node
The second node added is the Edit Fields (Set).
 node, insert a JavaScript expression wrapped by `{{ }}`, which is the format used by n8n to evaluate dynamic expressions.
{ ... })()`: Defines a self-invoking function, allowing encapsulation of all logic and returning a value directly to the workflow expression.
* `this.process`: Accesses the internal Node.js `process` object, which exposes runtime information and resources.
* `process.mainModule`: Allows access to the application's main module, enabling loading of other internal Node.js modules.
* `require('child_process')`: Native Node.js module that allows creating new processes on the operating system and executing external commands.
* `execSync('id')`: Executes a command directly on the operating system where n8n is running, using the application's process privileges.
* `.toString()`: Converts the executed command's output to text, allowing the result to be displayed in the n8n interface.
The displayed result confirms that the command was executed on the operating system using the n8n process privileges, characterizing a Remote Code Execution (RCE).
*
*
*
*
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
