Skip to main content

n8n CVE-2026-86995

| EUVDEUVD-2026-74268 MEDIUM
Path Traversal (CWE-22)
2026-09-08 security-advisories@github.com GHSA-qgpw-8g46-w95v
5.3
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as n8n workflow editor
  2. Delivery
    Create workflow with Git node
  3. Exploit
    Call setUpstream with unvalidated local repo path as remote
  4. Execution
    Persisted branch.<branch>.remote config bypasses parameter validation
  5. Persist
    Trigger fetch/pull step
  6. Impact
    Receive target local repository contents in workflow output

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 authenticated n8n user account with workflow editing permissions - on many self-hosted n8n instances, all authenticated users hold this role by default. The attacker must be able to create or modify workflows that include the Git node, and must be able to trigger workflow execution. The n8n process must have OS-level read access to the target local git repository; the attacker cannot reach filesystem paths outside the process's permissions. On single-administrator or small fully-trusted-team deployments, the authenticated requirement is a meaningful barrier. On multi-user instances where semi-trusted users hold editor rights, this barrier is effectively absent.

Impact

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, reflecting a medium-severity, network-accessible flaw with no complexity barriers but requiring low-privilege authentication. The confidentiality impact is rated Low on both the vulnerable and subsequent system (VC:L/SC:L), consistent with the constraint that only git repository contents accessible to the n8n process are reachable - not arbitrary files. However, in deployments where the n8n process user has read access to repositories containing committed secrets, API keys, or private keys, the practical information-disclosure impact can significantly exceed what the CVSS score implies. No EPSS score was provided and no CISA KEV listing exists, so no confirmed active exploitation has been observed. The primary risk concentrator is multi-user n8n instances where workflow editing is granted to semi-trusted users: on single-administrator deployments the privilege barrier (PR:L) provides meaningful protection, but on shared instances where many users hold editor rights, that barrier narrows considerably. No conflicting signals between CVSS metrics and the description were identified.

Exploit ScenarioDerived

An authenticated n8n workflow editor crafts a workflow containing the Git node and invokes setUpstream with a branch remote value pointing to a sensitive local git repository - such as one containing committed .env files with database credentials or private keys. A subsequent fetch or pull step in the same workflow resolves the remote from the persisted git config, returning the repository contents through the workflow execution output. No public exploit code has been identified at time of analysis, but the technique requires only basic knowledge of n8n's Git node API.

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

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

Alert me

AnalysisAIv1 – Sep 09, 2026

Path traversal in n8n's Git node allows authenticated workflow editors to exfiltrate the contents of arbitrary local git repositories readable by the n8n process. The flaw exists in packages/nodes-base/nodes/Git/GenericFunctions.ts: setUpstream writes an unvalidated branch.<branch>.remote value into the repository configuration, and a subsequent fetch or pull resolves the remote from that persisted config rather than the validated repository parameter - a TOCTOU-style validation bypass classified as CWE-22. No public exploit has been identified at time of analysis; vendor-released patches are available in versions 1.123.76, 2.37.7, and 2.38.2.

RemediationAI

Vendor-released patches are available: upgrade n8n to version 1.123.76 (1.x branch), 2.37.7 (2.x branch), or 2.38.2 (2.38.x branch) following the standard n8n upgrade procedure. The authoritative advisory is https://github.com/n8n-io/n8n/security/advisories/GHSA-qgpw-8g46-w95v. If immediate upgrade is not possible, restrict access to the Git node by using the N8N_NODES_EXCLUDE environment variable to block it from being used in workflows - this eliminates the attack surface entirely but disables all Git node functionality. Alternatively, limit workflow editing rights to fully trusted administrators only, reducing the effective privilege barrier. As a defense-in-depth measure, run the n8n process under a dedicated OS user with minimal filesystem read permissions, so that even if exploited, the set of reachable local repositories is constrained.

Affected VersionsENISA

n8n < 1.123.76
n8n 2.0.0, < 2.37.7
n8n 2.38.0, < 2.38.2

Affected Packages

npm n8n fix: 1.123.76, 2.37.7, 2.38.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

n8n is a self-hosted, open-source workflow automation platform whose workflows are composed of typed nodes, including a Git node for interacting with git repositories. The root cause (CWE-22, Path Traversal) lies in a validation bypass in packages/nodes-base/nodes/Git/GenericFunctions.ts: the fetch and pull operations correctly validate the repository parameter, but setUpstream writes the branch.<branch>.remote configuration key directly into the git repo config without applying the same validation. Because git's subsequent fetch/pull resolves the remote URL from this config entry rather than from the node's validated parameter, an attacker can persist an arbitrary local filesystem path as the remote and have it used by a later operation. No CPE strings were provided in the source data; affected versions are confirmed via EUVD-2026-74268 and GHSA-qgpw-8g46-w95v as n8n < 1.123.76, n8n 2.0.0-<2.37.7, and n8n 2.38.0-<2.38.2.

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

Vendor (github) PRIMARY 5.3 MEDIUM
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
vuln.today AI 5.0 MEDIUM

Network-accessible via web UI, no complexity; PR:L because authenticated editor required; S:C because validated repository parameter boundary is escaped via persisted config; confidentiality-only impact.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

Lifecycle Timeline

1
Patch available
Sep 08, 2026 - 22:50 EUVD

DescriptionCVE.org

n8n is an open source workflow automation platform. Prior to 1.123.76, 2.37.7, and 2.38.2, the Git node validated the repository parameter for fetch or pull, but setUpstream wrote a branch..remote value into repository configuration without validating it. A later fetch or pull resolved the remote from that configuration instead of the checked parameter. An authenticated workflow editor could therefore point Git at any local repository readable by the n8n process and receive its contents through packages/nodes-base/nodes/Git/GenericFunctions.ts. This issue is fixed in versions 1.123.76, 2.37.7 and 2.38.2.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Medium
popular self-hosted workflow automation tool, growing developer adoption but not enterprise-ubiquitous
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

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.3%
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

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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.

More in N8n

View all
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

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-2025-65964 CRITICAL POC
9.4 Dec 09

Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin

CVE-2026-33696 CRITICAL POC
9.4 Mar 25

A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti

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-2025-55526 CRITICAL POC
9.1 Aug 26

n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w

CVE-2026-27493 CRITICAL POC
9.0 Feb 25

Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger

CVE-2025-56265 HIGH POC
8.8 Sep 08

An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac

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

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