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/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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.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.
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
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
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
Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox
The n8n package 0.218.0 for Node.js allows Information Disclosure. Rated high severity (CVSS 7.5), this vulnerability is
The n8n package 0.218.0 for Node.js allows Directory Traversal. Rated medium severity (CVSS 6.5), this vulnerability is
n8n versions prior to 2.5.0 contain a critical SSH host key verification bypass in the Source Control feature that allow
This vulnerability in n8n (an open-source workflow automation platform) is an authentication bypass in the OAuth callbac
Code injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22 allows authenticated users to execute arbitrary c
Same technique Authentication Bypass
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-47642
GHSA-725q-c4vp-q4cg