CVE-2026-1470: n8n Unsafe Workflow Expression Evaluation Allows Remote Code Execution
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 n8nFor 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
Read for this analysis:
- https://nvd.nist.gov/vuln/detail/CVE-2026-1470
- https://github.com/n8n-io/n8n/commit/aa4d1e5825829182afa0ad5b81f602638f55fa04
- https://github.com/n8n-io/n8n/commit/25c4b9605b420a98d0185a4f01115122a5134d8f
- https://github.com/n8n-io/n8n/commit/30383d86139f3279a698df8d229eadfefe8627f4
- https://github.com/advisories/GHSA-5xrp-6693-jjx9
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 entriesCVE-2026-86073
n8n: Per-Resource OAuth Consent Bypass via Unbound Refresh Token Resource Substitution
medium5.9Sep 10, 2026CVE-2026-86074
n8n: Instance AI Credential Setup Accepts Unvalidated Probe URL from Fetched Content
medium5.9Sep 10, 2026CVE-2026-86075
n8n: Unauthenticated Persistent Storage Exhaustion via OAuth Dynamic Client Registration Endpoint
high8.7Sep 10, 2026CVE-2026-86076
n8n: Expression Sandbox Escape via Class-Field Sanitizer Rebinding Can Lead to Code Execution
high8.7Sep 10, 2026CVE-2026-86077
n8n: Anonymous Approval-Gate Bypass via Reused resumeToken over the Chat WebSocket
medium6.3Sep 10, 2026CVE-2026-86078
n8n: Prototype Pollution via Workflow Structure Summary Can Lead to Denial of Service
medium6.0Sep 10, 2026
