Skip to main content

n8n CVE-2026-71539

| EUVDEUVD-2026-60943 HIGH
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-08-18 GitHub_M GHSA-62jr-cqgr-xmh7
8.9
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate to n8n with low-privilege account
  2. Delivery
    Create workflow containing Git node clone
  3. Exploit
    Trigger clone to initiate path validation
  4. Install
    Win filesystem race: swap validated directory for symlink
  5. C2
    Redirect clone output into community node directory
  6. Execute
    Await or trigger n8n server restart
  7. Impact
    Planted 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n8n 2.0.0-rc.0, < 2.29.8
n8n 2.30.0, < 2.30.1
n8n < 1.123.64

Affected Packages

npm n8n fix: 1.123.64, 2.29.8, 2.30.1
euvd n8n_2_0_0_rc_0 fix: 2.29.8

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

Vendor (GitHub_M) PRIMARY 8.9 HIGH
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
vuln.today AI 8.5 HIGH

Network vector, low privileges, and high complexity for race win; scope changes because planted node code executes in server context affecting the host.

3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:L/SA:L

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

Lifecycle Timeline

2
Patch available
Aug 18, 2026 - 16:17 EUVD
CVE Published
Aug 18, 2026 - 14:43 cve.org
HIGH 8.9

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Medium
popular self-hosted workflow automation platform, strong developer adoption
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in N8n

View all
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2026-21877 CRITICAL POC
9.9 Jan 08

n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with

CVE-2026-21858 CRITICAL POC
10.0 Jan 08

n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical

CVE-2026-1470 CRITICAL POC
9.9 Jan 27

n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft

CVE-2025-65964 CRITICAL POC
9.4 Dec 09

Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin

CVE-2026-33696 CRITICAL POC
9.4 Mar 25

A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti

CVE-2026-33660 CRITICAL POC
9.4 Mar 25

An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit

CVE-2025-55526 CRITICAL POC
9.1 Aug 26

n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w

CVE-2026-33665 HIGH POC
8.8 Mar 25

Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP

CVE-2023-27563 HIGH POC
8.8 May 10

The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability

CVE-2026-33713 HIGH POC
8.7 Mar 25

SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute

CVE-2026-0863 HIGH POC
8.5 Jan 18

Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy