Skip to main content

n8n CVE-2026-65598

| EUVDEUVD-2026-47642 HIGH
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
8.9
CVSS 4.0 · Vendor: VulnCheck
Share

Severity by source

Vendor (VulnCheck) 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
8.5 HIGH

Network-reachable via an authenticated low-priv account (PR:L); the TOCTOU race and deferred restart make it AC:H; escaping the app to run host JS is a scope change (S:C) with full C/I/A impact.

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 (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

3
Patch available
Jul 22, 2026 - 13:02 EUVD
Analysis Generated
Jul 22, 2026 - 12:22 vuln.today
CVE Published
Jul 22, 2026 - 11:21 cve.org
HIGH 8.9

DescriptionCVE.org

n8n before 1.123.64, 2.29.8, and 2.30.1 contains a TOCTOU race condition in the Git node's clone operation that allows authenticated users to bypass path restrictions by swapping a directory for a symlink after the path is validated but before the clone runs. This lets an attacker plant a crafted repository in the community node directory, which n8n loads as a custom node on the next restart, executing arbitrary JavaScript on the server. Both self-hosted and cloud instances are affected.

AnalysisAI

Server-side remote code execution in n8n workflow automation (self-hosted and cloud) before 1.123.64, 2.29.8, and 2.30.1 lets authenticated users abuse a TOCTOU race in the Git node's clone operation to write a malicious repository into the community node directory, which n8n auto-loads and executes on the next restart. The flaw bypasses path validation by swapping a validated directory for a symlink before the clone runs, turning a low-privilege account into arbitrary JavaScript execution on the host. No public exploit identified at time of analysis; reported by VulnCheck.

Technical ContextAI

n8n is a Node.js-based workflow automation platform whose Git node wraps clone/pull operations, and which supports 'community' (custom) nodes loaded from a designated directory at startup. The vulnerability is CWE-367 (Time-of-Check to Time-of-Use race): the clone target path is validated once, but between that check and the actual filesystem write the attacker replaces the checked directory with a symlink, so the clone lands outside the intended sandbox - specifically in the community node directory. Because n8n dynamically requires/executes JavaScript from community nodes when the process restarts, a planted repository containing hostile node code runs in the server's Node.js process. Affected CPE is cpe:2.3:a:n8n-io:n8n across the vulnerable version ranges.

RemediationAI

Upgrade to a fixed release: Vendor-released patch: n8n 1.123.64, 2.29.8, or 2.30.1 (choose the fixed version on your current branch), per advisory GHSA-g3r5-9h93-4j2c (https://github.com/n8n-io/n8n/security/advisories/GHSA-g3r5-9h93-4j2c); n8n Cloud is remediated by the vendor. Where immediate patching is not possible, reduce exposure by restricting who can create or run workflows using the Git node - limit accounts to trusted operators and remove Git node access from low-trust users, since exploitation requires an authenticated user driving that node. As compensating controls, disable or block loading of community/custom nodes (set the environment so community packages are not loaded at startup, e.g. do not enable community node execution) to break the load-and-execute step - trade-off: legitimate community nodes stop working - and run the n8n process as an unprivileged, containerized user with a read-only or tightly permissioned community node directory so a planted repository cannot be written or executed. Monitor the community node directory for unexpected repositories and audit Git node usage.

More in N8n

View all
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-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-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-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

CVE-2023-27564 HIGH POC
7.5 May 10

The n8n package 0.218.0 for Node.js allows Information Disclosure. Rated high severity (CVSS 7.5), this vulnerability is

CVE-2023-27562 MEDIUM POC
6.5 May 10

The n8n package 0.218.0 for Node.js allows Directory Traversal. Rated medium severity (CVSS 6.5), this vulnerability is

CVE-2026-33724 MEDIUM POC
6.3 Mar 25

n8n versions prior to 2.5.0 contain a critical SSH host key verification bypass in the Source Control feature that allow

CVE-2026-33720 MEDIUM POC
6.3 Mar 25

This vulnerability in n8n (an open-source workflow automation platform) is an authentication bypass in the OAuth callbac

CVE-2026-27495 CRITICAL
9.9 Feb 25

Code injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22 allows authenticated users to execute arbitrary c

Share

CVE-2026-65598 vulnerability details – vuln.today

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