Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to n8n with low-privilege account
-
DeliveryCreate workflow containing Git node clone
-
ExploitTrigger clone to initiate path validation
-
InstallWin filesystem race: swap validated directory for symlink
-
C2Redirect clone output into community node directory
-
ExecuteAwait or trigger n8n server restart
-
ImpactPlanted JavaScript executes as server process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | Exploitation requires: (1) a valid n8n user account with at minimum workflow creation and execution permissions (PR:L confirmed by CVSS vector); (2) the Git node must not be excluded via the NODES_EXCLUDE environment variable - it is available by default; (3) the attacker must win a filesystem TOCTOU race window (AC:H/AT:P - high complexity with a specific attack precondition), which may require repeated attempts or scripted timing; (4) a subsequent n8n server restart must occur for the planted node to be loaded and executed, either triggered by the attacker or occurring naturally. Exploitation is limited by: the authentication requirement (unauthenticated exploitation is not possible), the race condition timing complexity which may reduce reliability, and the restart dependency which introduces a delay between exploitation and code execution. There is no requirement for admin-level privileges, special OS configuration, or non-default n8n settings beyond the Git node being available. |
| Impact | The CVSS 4.0 score of 8.9 (AV:N/AC:H/AT:P/PR:L/UI:N) correctly reflects that exploitation is non-trivial: AC:H and AT:P acknowledge the race condition timing requirement and prerequisite conditions, specifically that the Git node must be available and the attacker must be able to create and execute workflows. PR:L confirms that a low-privileged authenticated session is sufficient - no admin account needed. The subsequent-system confidentiality impact is rated SC:H, reflecting that arbitrary server-side code execution can pivot beyond n8n itself to host credentials, internal network services, and connected data stores. There is no CISA KEV listing and no public exploit code identified at time of analysis, which moderates immediate exploitation urgency. However, TOCTOU conditions in web applications are frequently exploited once a proof-of-concept is developed, and the payoff - full server RCE - is high enough to attract motivated threat actors. The realistic attacker profile is an insider or a user account obtained via credential compromise. For organizations running n8n with untrusted or externally-accessible user bases, this should be treated as a high priority. |
| Exploit ScenarioDerived | An attacker with a valid n8n user account (obtained via credential stuffing, phishing, or insider access) creates a workflow containing a Git node configured to clone a repository they control. They trigger the workflow, and concurrently monitor or script the filesystem race window between path validation and clone execution, swapping the target directory for a symlink pointing to n8n's community node directory. The clone deposits a crafted package.json and malicious JavaScript file there. On the next n8n restart - either triggered naturally or forced by the attacker via another API call - n8n loads the planted code as a trusted custom node and executes it in the server process context, granting the attacker full server-side code execution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
Remote code execution in n8n workflow automation platform (all versions prior to 1.123.64, 2.29.8, and 2.30.1) stems from a TOCTOU race condition in the Git node's clone operation, allowing any low-privileged authenticated user to achieve arbitrary JavaScript execution on the server. The attacker wins a race between path validation and the actual clone, replacing a legitimate directory with a symlink to plant a crafted repository in n8n's community node directory - which the platform loads and executes as trusted JavaScript on the next restart. Both self-hosted and cloud-hosted n8n instances are affected wherever authenticated users can create and run workflows containing the Git node; no public exploit or CISA KEV listing has been identified at time of analysis.
RemediationAI
The primary fix is to upgrade n8n to one of the three patched releases: 1.123.64 (for 1.x deployments), 2.29.8 (for 2.0.x-2.29.x deployments), or 2.30.1 (for 2.30.x deployments). Release artifacts are available at https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.64, https://github.com/n8n-io/n8n/releases/tag/n8n@2.29.8, and https://github.com/n8n-io/n8n/releases/tag/n8n@2.30.1. If immediate upgrade is not possible, three compensating controls are available per the vendor advisory, each with trade-offs: (1) Set the NODES_EXCLUDE environment variable to include n8n-nodes-base.git to disable the Git node entirely - this eliminates the attack surface but breaks any existing workflows that rely on Git operations. (2) Restrict n8n instance access to fully trusted, vetted users only - this reduces the attacker pool but does not eliminate the vulnerability for insider-threat scenarios. (3) Restrict network egress from the n8n host to block outbound connections to attacker-controlled git servers - this disrupts the clone step but is bypassable if the attacker can host a repository on an already-trusted domain. None of these workarounds fully remediate the race condition and should be treated as temporary measures only.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n (cpe:2.3:a:n8n-io:n8n:*:*:*:*:*:*:*:*) is a Node.js/npm-distributed workflow automation platform that supports extensibility via community nodes - custom JavaScript modules loaded from a designated directory at startup. The Git node provides a clone operation that fetches remote repositories onto the server. The root cause is CWE-367 (TOCTOU Race Condition): the application validates that a target path is a safe directory, but the gap between that check and the actual filesystem operation is exploitable. By swapping the validated directory for a symlink targeting a controlled location, an attacker can redirect the clone output to n8n's community node directory. Because n8n trusts and executes all JavaScript found in that directory on restart, the planted repository becomes privileged server-side code. The exploit chain is entirely within the n8n application layer and requires no OS-level privileges beyond a valid n8n account with workflow creation rights.
Know when N8n gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:L/SA:L
Network vector, low privileges, and high complexity for race win; scope changes because planted node code executes in server context affecting the host.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
n8n is an open source workflow automation platform. Prior to 1.123.64, 2.29.8, and 2.30.1, the Git node clone operation allows an authenticated workflow user to swap a validated directory for a symlink before cloning, planting a crafted repository in the community node directory that loads as a custom JavaScript node after restart and executes arbitrary code on the server. This issue is fixed in versions 1.123.64, 2.29.8, and 2.30.1.
Executive ViewAI
n8n workflow automation platform (all versions before 1.123.64, 2.29.8, 2.30.1) contains a remote code execution vulnerability allowing any authenticated user with workflow creation privileges to achieve full server-level code execution. This directly threatens organizations using n8n for business-critical automations, as compromised or insider accounts with basic user access can lead to complete platform compromise and access to all data n8n processes. Both self-hosted and cloud instances require immediate mitigation to prevent exploitation.
Until patch is available: restrict workflow creation privileges to trusted administrative personnel only; disable the Git node entirely; limit n8n instance access to internal networks only; enforce audit logging of all community node installations and script executions; run n8n in containers with minimal system permissions and restricted file system access; monitor system logs and process execution for unexpected JavaScript engine spawning or community node directory modifications.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute
Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox
EUVD-2026-60943
GHSA-62jr-cqgr-xmh7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB