Skip to main content

n8n CVE-2025-62726

HIGH
Inclusion of Functionality from Untrusted Control Sphere (CWE-829)
2025-10-30 security-advisories@github.com
8.8
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Host malicious repo with pre-commit hook
  2. Delivery
    n8n Git Node clones untrusted repository
  3. Exploit
    Commit operation triggers pre-commit hook
  4. Execution
    Arbitrary code executes in n8n environment
  5. Impact
    Exfiltrate credentials and compromise workflows

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Trusted source inclusion only
Exploitation Conditions

Requires that the n8n Git Node be used to clone an untrusted/attacker-controlled repository and then execute the Commit operation, which triggers the repository's pre-commit hook; the underlying enabler is Git's handling of bare/embedded repositories (addressed by setting safe.bareRepository=explicit). Exploitation is LIMITED by: an authenticated n8n user with Git Node access is needed (PR:L), the workflow must point at attacker-controlled repository content rather than trusted internal repos, and the operator must perform the clone-then-commit sequence. Mitigating conditions: cloud deployments are protected after 1.113.0 automatically, and self-hosted operators must set N8N_GIT_NODE_DISABLE_BARE_REPOS=true (or upgrade) to be protected. Deployments that only interact with trusted repositories are not realistically exposed.

Impact

The input CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 8.8 High) rates this as a network-accessible, low-complexity flaw requiring only low-privilege authentication, with full confidentiality/integrity/availability impact - consistent with RCE in the n8n process. However, the signals are mixed on real-world urgency: there is no CISA KEV listing and no public exploit identified at time of analysis, and no EPSS score was provided, so exploitation-probability data is missing. The vector's UI:N is questionable: per the GitHub advisory and description, exploitation requires a legitimate n8n operator to configure a workflow that clones an attacker-controlled (untrusted) Git repository and then run the Commit operation - i.e., the malicious code is attacker-supplied but the triggering action is performed by an authenticated insider/operator, which functionally resembles a required user action against a trust-boundary assumption rather than a purely remote push. This is a genuine priority for organizations that use the Git Node against untrusted repositories, but for deployments that only interact with trusted internal repos the practical exposure is substantially lower. Net: a real, vendor-confirmed RCE with a clean patch, but absent active-exploitation or POC evidence it is a 'patch promptly / apply the mitigation flag' issue rather than an emergency.

Exploit ScenarioDerived

An authenticated n8n user builds or is tricked into running a workflow whose Git Node clones an attacker-controlled repository containing a malicious pre-commit hook; when the workflow later invokes the Git Node Commit operation, Git automatically executes the hook, running arbitrary code inside the n8n environment with access to stored credentials and workflows. No public exploit code was identified at time of analysis, though the technique (abusing Git pre-commit hooks) is well understood and trivially reproducible. The AV:N/AC:L vector reflects low technical complexity once a malicious repo is cloned.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.8% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 19, 2026

Remote code execution in n8n before 1.113.0 can occur when a Git Node workflow clones an attacker-controlled repository and then runs the Commit operation, causing the repository's pre-commit hook to execute in the n8n process. The flaw affects both Cloud and Self-Hosted deployments and requires an authenticated n8n user with Git Node access plus the clone-then-commit sequence; no public exploit identified at time of analysis. The fix in 1.113.0 disables implicit bare-repository handling and adds the self-hosted N8N_GIT_NODE_DISABLE_BARE_REPOS control.

RemediationAI

Upgrade n8n to 1.113.0, the vendor-released fixed version, per GHSA-xgp7-7qjq-vg47, PR 19559, and commit 5bf3db5ba84d3195bbe11bbd3c62f7086e090997. Self-hosted operators should also set N8N_GIT_NODE_DISABLE_BARE_REPOS=true, which the vendor strongly recommends; this forces safe.bareRepository=explicit and blocks the bare-repository behavior tied to the issue, at the cost of breaking workflows that legitimately use bare Git repositories. Cloud deployments receive the protection automatically in 1.113.0. If upgrading is not immediately possible, avoid cloning or interacting with untrusted repositories in the Git Node and restrict Git Node usage to trusted users and workflows; this reduces exposure but does not fix the underlying execution path.

Affected Packages

npm n8n fix: 1.113.0

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's Git Node wraps Git operations through simple-git inside the n8n server process. Git hooks are executable scripts stored in a repository's .git/hooks directory, and a cloned repository can carry a pre-commit hook that the Git client invokes during a commit; because n8n exposes both clone and commit operations, committing in a cloned attacker-controlled repository runs that hook with n8n's privileges and access to connected credentials and workflows. This maps to CWE-829, Inclusion of Functionality from Untrusted Control Sphere, because n8n incorporates and executes functionality from untrusted repository content. The 1.113.0 change adds safe.bareRepository=explicit automatically for Cloud deployments and via N8N_GIT_NODE_DISABLE_BARE_REPOS for self-hosted deployments, addressing the bare/embedded repository handling that enables the abuse. The CPE cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:* covers n8n on Node.js before the fixed release.

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 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.0 HIGH

Authenticated n8n user needed (PR:L) and an operator must configure cloning of an untrusted repo and run Commit (UI:R); code runs in the n8n process (S:U) with full C/I/A impact.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

n8n is an open source workflow automation platform. Prior to 1.113.0, a remote code execution vulnerability exists in the Git Node component available in both Cloud and Self-Hosted versions of n8n. When a malicious actor clones a remote repository containing a pre-commit hook, the subsequent use of the Commit operation in the Git Node can inadvertently trigger the hook’s execution. This allows attackers to execute arbitrary code within the n8n environment, potentially compromising the system and any connected credentials or workflows. This vulnerability is fixed in 1.113.0.

Executive ViewAI

Why It Matters

n8n deployments prior to 1.113.0 expose the automation platform to remote code execution when a user with Git Node access clones an attacker-controlled repository and performs a commit, causing repository hooks to run inside the n8n process. This affects both n8n Cloud and self-hosted environments and could allow compromise of automation workflows, credentials, and connected systems; no public exploit was identified at time of analysis. Leadership should prioritize upgrading to 1.113.0 because n8n commonly holds high-value integration access across business processes.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.8%
Top 44% exploitable
Prevalence
Medium
popular open-source workflow automation, large but not ubiquitous production footprint
Data Quality
3 sources
Confidence: Low

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 HIGH
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*

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