n8n
CVE-2025-62726
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessHost malicious repo with pre-commit hook
-
Deliveryn8n Git Node clones untrusted repository
-
ExploitCommit operation triggers pre-commit hook
-
ExecutionArbitrary code executes in n8n environment
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
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
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.
Apply vendor patch.
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
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
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
NVD
CVE.org
EPSS
GitHub
Exploit-DB