Skip to main content

n8n EUVDEUVD-2026-38480

| CVE-2026-49465 MEDIUM
Path Traversal (CWE-22)
2026-06-16 https://github.com/n8n-io/n8n GHSA-5xp3-2w67-427v
6.0
CVSS 4.0 · Vendor: https://github.com/n8n-io/n8n
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to n8n with workflow edit rights
  2. Delivery
    Create or modify workflow with Git Clone node
  3. Exploit
    Set clone source to local filesystem path containing sensitive git repo
  4. Execution
    Execute workflow
  5. Persist
    Git reads local repository contents, bypassing N8N_RESTRICT_FILE_ACCESS_TO
  6. Impact
    Attacker 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

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

Alert me

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

n8n 2.0.0-rc.0, < 2.21.8
n8n < 1.123.48
n8n 2.22.0, < 2.22.4

Affected Packages

npm n8n fix: 1.123.48, 2.21.8, 2.22.4
euvd n8n_2_0_0_rc_0 fix: 2.21.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 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

Vendor (https://github.com/n8n-io/n8n) PRIMARY 6.0 MEDIUM
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
vuln.today AI 7.7 HIGH

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.

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

Primary rating from Vendor (https://github.com/n8n-io/n8n).

CVSS VectorVendor: https://github.com/n8n-io/n8n

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

Lifecycle Timeline

1
CVSS changed
Jun 23, 2026 - 18:22 NVD
7.7 (MEDIUM) 6.0 (MEDIUM)

DescriptionCVE.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.git to the NODES_EXCLUDE environment variable.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

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