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

CVE-2026-1470: n8n Unsafe Workflow Expression Evaluation Allows Remote Code Execution

criticalCVSS 3.1 9.9GHSA-5xrp-6693-jjx9

n8n's workflow expression evaluator can be escaped by an authenticated user, who can then run arbitrary code with the privileges of the n8n process. The flaw affects n8n below 1.123.17, 2.0.0 up to 2.4.5, and 2.5.0 up to 2.5.1. Upgrade to 1.123.17, 2.4.5 or 2.5.1. The advisory offers no mitigation.

Published Jan 27, 2026 · Updated Jan 29, 2026 · Analysis Nov 1, 2026

What an attacker can do

n8n evaluates expressions that users put in node fields. The evaluation context was not isolated enough from the underlying Node.js runtime, so a crafted expression breaks out of the sandbox. JFrog's write-up says the proof of concept places the expression in an Edit Fields node and runs it with Execute step.

The attacker needs an n8n account that can create or edit workflows. No special configuration is needed. The code then runs as the n8n main process, which means access to every credential stored in n8n, the encryption key, environment variables, other workflows and the host filesystem. The CVSS vector rates scope as changed and impact as high across confidentiality, integrity and availability.

On a shared instance, any editor can therefore become the owner of the whole server and everything it connects to: cloud accounts, databases, email, and AI service keys. On a single-user instance the attacker would first need to obtain an account. Self-hosted deployments that give workflow edit rights widely are the highest risk.

Who is affected

n8n below 1.123.17; 2.0.0 up to but not including 2.4.5; and 2.5.0 up to but not including 2.5.1. Check the version:

npm ls n8n

For Docker, read the image tag. Any account with workflow edit rights can reach the flaw.

n8n

Ecosystem
npm
Affected
< 1.123.17
Fixed in
1.123.17
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.0.0, < 2.4.5
Fixed in
2.4.5
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.5.0, < 2.5.1
Fixed in
2.5.1
Check
npm ls n8n

How to fix it

Upgrade to n8n 1.123.17, 2.4.5 or 2.5.1, whichever matches your release line, or later. The advisory data links fix commits including aa4d1e58 and offers no mitigation. JFrog also states that no mitigations are provided.

Since no workaround exists, restrict who can create or edit workflows until you have upgraded. After upgrading, rotate credentials stored in n8n and the instance encryption key if untrusted users had edit rights.

How to tell if you were hit

Review recent workflow edits for expressions that reach for runtime objects, such as references to process, require, constructor chains or child_process inside {{ }} blocks, particularly in Edit Fields nodes. Check n8n execution logs for manual step executions by users who should not be editing workflows. On the host, look for unexpected child processes of the n8n process, new files, and outbound connections from the n8n server. The sources give no specific log signature.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

n8n contains a critical Remote Code Execution (RCE) vulnerability in its workflow Expression evaluation system. 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.

Questions

Does CVE-2026-1470 need authentication?

Yes. The attacker needs an n8n account that can create or edit workflows. The vector requires low privileges and no user interaction.

Is there a workaround?

The sources give none. The practical step is to limit who can edit workflows until you upgrade.

Which versions fix it?

1.123.17 on the 1.x line, 2.4.5 on the 2.0 to 2.4 range, and 2.5.1 on the 2.5 line. Later releases are also fixed.

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