NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · n8n

CVE-2025-68613: n8n Vulnerable to Remote Code Execution via Expression Injection

criticalCVSS 3.1 9.9ExploitedGHSA-v98v-ff95-f3cp

n8n's workflow expression evaluator runs user-supplied expressions in a context that is not isolated from the Node.js runtime. Any authenticated user who can edit workflows can run code as the n8n process. CISA lists it as exploited, and Akamai saw the Zerobot botnet use it. Upgrade to n8n 1.120.4, 1.121.1, or later; the advisory recommends 1.122.0.

Published Dec 22, 2025 · Updated Mar 11, 2026 · Analysis Oct 31, 2026

What an attacker can do

n8n evaluates expressions that users write while configuring workflows. In affected builds that evaluation was not sufficiently sandboxed, so an expression can reach the underlying runtime and run arbitrary code with the privileges of the n8n process. The CVSS vector is network, low privileges, no user interaction, scope changed. The attacker needs only a login with permission to create or edit a workflow, not an administrator account.

A successful attacker gets full control of the instance: read and write files on the server, steal environment variables and the credentials n8n stores for connected services, change workflows and run system commands. Because n8n often connects databases, cloud services and internal systems, one compromised instance can lead further into the network.

Akamai reports Zerobot, a Mirai-based botnet, exploiting this since mid-January 2026. The observed request goes to /rest/workflow/run with a workflow containing an executeCommand node. It downloads tol.sh and then Zerobot binaries. A public proof-of-concept exists.

Who is affected

n8n from 0.211.0 up to but not including 1.120.4, and 1.121.0 (fixed in 1.121.1). Self-hosted instances are the target.

n8n --version
npm ls -g n8n

For Docker, check the image tag you run, for example with docker ps. If any user who is not fully trusted can create or edit workflows, treat the instance as exposed.

n8n

Ecosystem
npm
Affected
>= 0.211.0, < 1.120.4
Fixed in
1.120.4
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 1.121.0, < 1.121.1
Fixed in
1.121.1
Check
npm ls n8n

How to fix it

Upgrade to n8n 1.120.4 on the 1.120 line, 1.121.1 on the 1.121 line, or 1.122.0 or later. The advisory text names 1.122.0 as the release that adds safeguards to restrict expression evaluation.

npm install -g n8n@latest

Workarounds from the advisory, which do not remove the risk: limit workflow creation and editing to fully trusted users, and run n8n in a hardened environment with restricted operating system privileges and network access.

CISA added it to the Known Exploited Vulnerabilities catalog on 2026-03-11. The required action is to apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. The due date for US federal agencies was 2026-03-25.

CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

How to tell if you were hit

Check n8n logs and workflow definitions for executeCommand nodes you did not create, and for requests to /rest/workflow/run from unfamiliar accounts. On the host, look for tol.sh and zerobotv9 files, and for outbound connections to the Akamai-published indicators, including 144.172.100.228, 140.233.190.96, 172.86.123.179, 216.126.227.101, 103.59.160.237, and the domains 0bot.qzz.io, andro.notemacro.com and pivot.notemacro.com. Akamai also published Snort rules, a YARA rule and file hashes. Rotate all credentials stored in n8n if you find signs of compromise.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

n8n contains a critical Remote Code Execution (RCE) vulnerability in its workflow expression evaluation system. Under certain conditions, expressions supplied by authenticated users during workflow configuration may be evaluated in an execution context that is not sufficiently isolated from the underlying runtime.

An authenticated attacker could abuse this behavior to execute arbitrary code with the privileges of the n8n process. Successful exploitation may lead to full compromise of the affected instance, including unauthorized access to sensitive data, modification of workflows, and execution of system-level operations.

Patches

This issue has been fixed in n8n v1.122.0.

Users are strongly advised to upgrade to version 1.122.0 or later, which introduces additional safeguards to restrict expression evaluation.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Limit workflow creation and editing permissions to fully trusted users only.
  • Deploy n8n in a hardened environment with restricted operating system privileges and network access to reduce the impact of potential exploitation.

These workarounds do not fully eliminate the risk and should only be used as short-term measures.

Credited to fatihhcelik, yuvalo1212.

Questions

Is CVE-2025-68613 exploited in the wild?

Yes. CISA added it to the KEV catalog on 2026-03-11, and Akamai reports the Zerobot botnet exploiting it since mid-January 2026.

Do attackers need admin access to n8n?

No. A login with low privileges is enough, as long as the account can create or edit workflows that use expressions.

Which n8n versions fix it?

1.120.4 and 1.121.1 are the patched releases for their lines. The advisory recommends 1.122.0 or later, which adds more safeguards.

Can I just restrict who edits workflows?

That reduces risk, but the advisory says it does not eliminate it. Upgrade.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More n8n vulnerabilities

All n8n entries