Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to n8n with workflow edit rights
-
DeliveryCreate or modify workflow with Git Clone node
-
ExploitSet clone source to local filesystem path containing sensitive git repo
-
ExecutionExecute workflow
-
PersistGit reads local repository contents, bypassing N8N_RESTRICT_FILE_ACCESS_TO
-
ImpactAttacker reads exfiltrated data from permitted workflow output path
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an account with permission to create or modify n8n workflows - a deliberately granted access level commonly assigned to non-admin collaborators in shared instances. The N8N_RESTRICT_FILE_ACCESS_TO sandbox must be in use (the operator has attempted to restrict file access), since the vulnerability specifically bypasses this control; however, because the bypass operates through git's indirect read channel rather than direct file access, the flaw is present in any n8n deployment using the Git node regardless of how strictly the sandbox is tuned. The target data must reside within a directory that contains a valid git repository structure (.git directory with tracked files) and must be readable by the OS user account under which the n8n process runs. Exploitation is limited by: OS-level file permissions on the n8n service account (arbitrary OS files not tracked in a git repo cannot be exfiltrated this way); the requirement for a git-initialized repository structure at the target path; and the need for the attacker to have network or UI-level access to the n8n instance to configure and trigger workflows. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N scoring 7.7 accurately characterizes the risk: network-reachable, low attack complexity, requiring only low-privilege authenticated access, with a scope change and high confidentiality impact. No EPSS score was provided in the source intelligence, so exploitation probability cannot be quantitatively assessed. The absence of a CISA KEV listing and no identified public POC reduces urgency compared to actively exploited flaws; however, the scope change (S:C) carries particular weight here because the n8n process may run with elevated OS-level permissions and have access to sensitive adjacent files well beyond workflow data. In multi-tenant or collaborative n8n deployments where workflow editing is routinely delegated to non-admin users, this vulnerability effectively grants those users read access to any git-tracked material visible to the n8n service account. The attack does not require chaining additional vulnerabilities and is constrained only by OS-level file permissions and the requirement that target directories contain valid git repository structures - both conditions commonly met in production deployments. |
| Exploit ScenarioDerived | An authenticated n8n user with workflow editing rights creates a workflow containing a Git Clone node, configuring the source repository field with a local filesystem path such as /home/n8n/.ssh or a directory containing application configuration files tracked in git. Upon workflow execution, git clones the target local repository into an output path permitted by the N8N_RESTRICT_FILE_ACCESS_TO sandbox, after which the attacker reads the exfiltrated contents through normal n8n workflow output mechanisms. No public POC has been identified, but the technique mirrors well-understood git local repository abuse patterns and requires no special tooling beyond standard n8n workflow configuration access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 16, 2026
The Git node in n8n's workflow automation platform allows authenticated workflow editors to exfiltrate arbitrary host filesystem contents by supplying local paths as git repository sources in Clone or Push operations, bypassing the N8N_RESTRICT_FILE_ACCESS_TO sandbox entirely. Any git repository readable by the n8n process - including directories containing SSH keys, environment files, or database credentials - can be cloned into an allowed output path and read back through normal workflow outputs. No public exploit identified at time of analysis, but the attack complexity is genuinely low for any user holding workflow editing permissions, and vendor-confirmed patches are available in versions 1.123.48, 2.21.8, and 2.22.4.
RemediationAI
Vendor-released patches are available: upgrade n8n to version 1.123.48 (1.x series), 2.21.8 (for 2.x deployments prior to 2.22), or 2.22.4 (for 2.22.x deployments), or any later release, as confirmed by the GitHub Security Advisory GHSA-5xp3-2w67-427v at https://github.com/n8n-io/n8n/security/advisories/GHSA-5xp3-2w67-427v. If immediate upgrade is operationally infeasible, two compensating controls exist with explicit trade-offs: first, restrict workflow creation and editing permissions to fully trusted users only - this reduces the attack surface but is often disruptive in collaborative environments and does not patch the underlying flaw; second, disable the Git node entirely by adding n8n-nodes-base.git to the NODES_EXCLUDE environment variable - this fully blocks the vulnerable code path but removes all git-based workflow functionality from the instance. The vendor explicitly states that neither workaround fully remediates the vulnerability, and both should be treated strictly as short-term interim measures until patching is completed.
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 is a Node.js-based workflow automation platform distributed as the npm package n8n. Its 'Git node' exposes native git operations - Clone and Push - as configurable workflow steps, accepting a repository path as a user-supplied parameter. The platform enforces filesystem access restrictions via the N8N_RESTRICT_FILE_ACCESS_TO environment variable, which is intended to sandbox direct file reads to approved directories. The root cause (CWE-22: Improper Limitation of a Pathname) is a failure to validate whether the repository path argument resolves to a remote URL or a local filesystem path before passing it to git operations. Because git natively supports file:// and bare local paths as valid repository sources, the Clone operation functions as an indirect read channel that bypasses path validation checks applied to direct file reads. This is a classic sandbox escape via a trusted subsystem that was not subject to the same access controls as the primitives it was designed to protect.
Know when the next one hits your stack
- 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:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N
Network-reachable via n8n UI/API; PR:L because workflow edit permission is required; S:C because git bypass escapes the n8n sandbox boundary to read host filesystem data; C:H only, no integrity or availability impact demonstrated.
Primary rating from Vendor (https://github.com/n8n-io/n8n).
CVSS VectorVendor: https://github.com/n8n-io/n8n
Lifecycle Timeline
1DescriptionCVE.org
Impact
An authenticated user with permission to create or modify workflows could supply a local filesystem path as the source repository in the Git node's Clone operation, or as the target repository in the Push operation, bypassing the N8N_RESTRICT_FILE_ACCESS_TO file sandbox. This allowed the contents of any local git repository accessible to the n8n process to be cloned into an allowed path and read, circumventing the access restrictions that correctly blocked direct file reads to the same paths.
Patches
The issue has been fixed in n8n versions 1.123.48, 2.21.8, and 2.22.4. Users should upgrade to one of these versions or later to remediate the vulnerability.
Workarounds
If upgrading is not immediately possible, administrators should consider the following temporary mitigations:
- Limit workflow creation and editing permissions to fully trusted users only.
- Disable the Git node by adding
n8n-nodes-base.gitto theNODES_EXCLUDEenvironment variable.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-38480
GHSA-5xp3-2w67-427v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB