Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as n8n member
-
DeliveryNest repo below configured repositoryPath
-
ExploitSubmit crafted relative remote URL passing sandbox check
-
Executiongit resolves URL outside N8N_RESTRICT_FILE_ACCESS_TO
-
PersistFetch/pull merges external repo objects
-
ImpactRead back out-of-bounds git contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path verification
|
| Exploitation Conditions | Requires an authenticated n8n user with member-level access (PR:L) in a deployment that uses the Git node AND relies on N8N_RESTRICT_FILE_ACCESS_TO to sandbox file access. The attacker must be able to nest a repository one directory level below the configured repositoryPath so that an identical relative-URL string passes n8n's file-access validation while git, operating from the enclosing repository's top level, resolves it outside the sandbox. Exploitation is limited to reading git-repository objects that exist outside the restricted path; it is neutralized entirely if the Git node is disabled (n8n-nodes-base.git added to NODES_EXCLUDE) or the instance is upgraded to 1.123.76 / 2.37.7 / 2.38.2. It does not apply to instances that do not enforce N8N_RESTRICT_FILE_ACCESS_TO or do not expose the Git node. |
| Impact | This is a genuine but modest-severity issue. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L) scores 5.3 (medium) and is internally consistent with the description: network-reachable but requires an authenticated n8n member (PR:L), no user interaction, and yields only limited confidentiality impact (VC:L/SC:L) with no integrity or availability effect on the host. The impact is bounded - an attacker reads back git-repository objects that lie outside the N8N_RESTRICT_FILE_ACCESS_TO sandbox, not arbitrary secrets or full filesystem contents, and only if a target git repo exists outside the boundary. No EPSS score, no CISA KEV listing, and no public POC are present in the provided data, so there is no public exploit identified at time of analysis and no evidence of active exploitation. The realistic priority is low-to-moderate: it is a privilege-and-configuration-gated sandbox escape affecting only deployments that use the Git node and rely on N8N_RESTRICT_FILE_ACCESS_TO, exploitable only by users who already hold authenticated access. CWE-426 (Untrusted Search Path) accurately captures the root cause - git resolving the relative URL from the enclosing repository's top level rather than the validated path. |
| Exploit ScenarioDerived | An authenticated n8n member configures a Git node and nests a repository one directory below the configured repositoryPath, then supplies a relative remote URL that passes the file-access validation but which git resolves from the enclosing repository outside the sandbox. A subsequent fetch or pull merges the out-of-bounds repository's objects into the attacker's own repository, letting them read back file contents that N8N_RESTRICT_FILE_ACCESS_TO was meant to protect. No public POC is identified in the provided sources. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 16, 2026
Sandbox bypass in the n8n Git node lets an authenticated member-level user read git repository objects located outside the path enforced by N8N_RESTRICT_FILE_ACCESS_TO. n8n validates a relative remote URL against the configured repositoryPath, but git is then executed with that directory as its working directory and walks up to the enclosing repository's top level, where it resolves the identical URL string from outside the sandbox; a subsequent fetch or pull merges the external repository's objects into the attacker's own repository, from which the contents can be read back. Versions before 1.123.76, 2.37.7, and 2.38.2 are affected; no public exploit code has been identified at time of analysis, and the confidentiality-only impact (CVSS 4.0 base 5.3, assessed as CVSS 3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N) is neutralized by upgrading or by disabling the Git node.
RemediationAI
Upgrade to the vendor-released fixed versions: n8n 1.123.76 for the 1.x branch, 2.37.7 for the 2.37.x branch, or 2.38.2 for the 2.38.x branch; these resolve the remote reference from the directory git actually operates in before applying the sandbox check. If an upgrade cannot be performed immediately, add n8n-nodes-base.git to the NODES_EXCLUDE environment variable to disable the Git node, which fully neutralizes the issue at the cost of removing all Git node functionality (and any workflows depending on it) for every user on the instance; combine this with a review of existing workflows and repositories for unexpected nested repository layouts or out-of-sandbox objects that may already have been merged. Note that instances that do not enforce N8N_RESTRICT_FILE_ACCESS_TO, or that do not expose the Git node, are not affected by this specific bypass, so tightening file-access configuration alone is not a substitute for patching. Details are available in the vendor advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-fm93-2x43-6676 and the VulnCheck advisory at https://www.vulncheck.com/advisories/n8n-before-1.123.76-sandbox-escape-via-git-relative-url.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The weakness is CWE-426 (Untrusted Search Path) manifesting as a canonicalization/validation-mismatch flaw in the n8n workflow automation platform's Git node (n8n-nodes-base.git). n8n's file-access sandbox (N8N_RESTRICT_FILE_ACCESS_TO) checks a relative remote URL against the configured repositoryPath before invoking git, but git is launched with the user-controlled repository directory as its working directory. Git resolves paths relative to the repository top level it discovers by walking up the directory tree, so a repository nested one level below the configured repositoryPath produces an identical relative-URL string that passes n8n's check while git resolves it against the enclosing repository root, outside the restricted path. A fetch or pull performed on the attacker's own repository then imports objects from the out-of-sandbox repository into it, where the attacker can read them back. Exploitation requires an authenticated n8n user with member-level privileges in a deployment that both exposes the Git node and enforces N8N_RESTRICT_FILE_ACCESS_TO; because the resulting access crosses the intended isolation boundary, the assessed CVSS 3.1 vector carries a changed scope (S:C) with low confidentiality impact only (C:L/I:N/A:N). The fix in 1.123.76, 2.37.7, and 2.38.2 resolves the remote reference from the directory git actually operates in before applying the sandbox check, eliminating the validation/execution mismatch.
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:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
Authenticated member (PR:L) over the network; escaping the file-access sandbox is a scope change (S:C) yielding limited read-only disclosure (C:L), with no integrity or availability impact.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
n8n is a workflow automation platform. In versions before 1.123.76, 2.37.7, and 2.38.2, the Git node validated a relative remote URL against the configured repositoryPath but then invoked git with that path as its working directory; git walked up to the enclosing repository's top level and resolved the same relative URL from there. An authenticated user (member) who nested the repository one level below the configured path could therefore make an identical URL string pass the file-access check while git resolved it outside the sandbox. A subsequent fetch or pull read a git repository outside N8N_RESTRICT_FILE_ACCESS_TO and merged its objects into the user's own repository, where their contents could be read back. The issue is fixed in n8n 1.123.76, 2.37.7, and 2.38.2, which resolve the remote reference from the directory git actually operates in before applying the sandbox check. As a workaround, the Git node can be disabled by adding n8n-nodes-base.git to NODES_EXCLUDE.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger
An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac
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
EUVD-2026-81287
GHSA-f9wr-qmqc-cpw3
NVD
CVE.org
EPSS
Exploit-DB