CVE-2026-86995 — Vulnerability in n8n — CVE Details
n8n: Git Node branch.<name>.remote Config Key Bypasses Sandbox Path Restriction, Enabling Local Git Repository Read
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.40%). Schedule for your next planned update.
Does your project use an affected n8n version?
Paste your package-lock.json to check it for CVE-2026-86995 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
The Git node validated the repository that a fetch or pull targeted, but setUpstream wrote a branch.<name>.remote value into the repository's own configuration without validating it. A subsequent fetch or pull resolved the remote from that configuration rather than from the checked parameter, so an authenticated user with workflow-edit permission could point it at any local repository the n8n process could read and receive its contents. The patch validates the branch remote configuration on the same terms as the repository parameter.
Patches
The issue has been fixed in n8n versions 1.123.76, 2.37.7, and 2.38.2. 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:
- Restrict n8n instance access to fully trusted users only.
- Disable the Git node by adding
n8n-nodes-base.gitto theNODES_EXCLUDEenvironment variable. - Ensure the n8n process runs under a dedicated low-privilege OS user account to limit the scope of any filesystem access.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Advisory Timeline
- First published September 10, 2026 (77 days ago).
- Last revised September 10, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install n8n@1.123.76
npm install n8n@2.37.7
npm install n8n@2.38.2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: npm (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
- CWE-73
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.0 score means for each attack dimension.
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
References
- https://github.com/n8n-io/n8n/security/advisories/GHSA-qgpw-8g46-w95vWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-86995ADVISORY
- https://github.com/n8n-io/n8nPACKAGE
- https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.76WEB
- https://github.com/n8n-io/n8n/releases/tag/n8n@2.37.7WEB
- https://github.com/n8n-io/n8n/releases/tag/n8n@2.38.2WEB
Frequently Asked Questions
- What is CVE-2026-86995?
- n8n: Git Node branch.<name>.remote Config Key Bypasses Sandbox Path Restriction, Enabling Local Git Repository Read. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.0/10).
- How do I check if my project is affected by CVE-2026-86995?
- CVE-2026-86995 affects n8n. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-86995 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 26.3% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-65016HIGH
n8n: SSO Instance-Role Provisioning Allows Privilege Escalation to Instance Owner
- CVE-2026-65595HIGH
n8n: Privilege Escalation and Code Execution via Full Public API Key Scope Assignment to Token Exchange JWTs
- CVE-2026-56359MEDIUM
n8n has XSS in its Credential Management Flow
- CVE-2025-52554MEDIUM
n8n is vulnerable to Improper Authorization through its `/stop` endpoint
- CVE-2026-65596MEDIUM
n8n: GraphQL Node Bypasses "Allowed HTTP Request Domains" Restriction
- CVE-2026-56357MEDIUM
n8n: Webhook Forgery on Github Webhook Trigger
- CVE-2026-58661MEDIUM
n8n: Authenticated Users Can Exhaust Temporary Disk Storage via Data-Table File Uploads
- CVE-2025-68949MEDIUM
n8n: Webhook Node IP Whitelist Bypass via Partial String Matching