n8n
CVE-2025-65964
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to n8n with workflow-edit rights
-
DeliveryCreate Git node workflow using Add Config
-
ExploitSet core.hooksPath to attacker-controlled hook
-
ExecutionTrigger subsequent Git operation
-
PersistGit executes pre-commit hook
-
ImpactRun arbitrary commands on host
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 an authenticated actor with permission to create or modify an n8n workflow that uses the Git node, and specifically the ability to invoke the Add Config operation to write arbitrary Git configuration (notably core.hooksPath) pointing at an attacker-controlled hook such as pre-commit; code execution then fires only when a subsequent Git operation is performed. Exploitation is NOT possible against the patched default behavior in 1.119.2+, which forces core.hooksPath=/dev/null unless the operator explicitly sets N8N_GIT_NODE_ENABLE_HOOKS=true. Limiting factors: workflow-authoring privileges are needed (not anonymous), the Git node must be enabled (it can be excluded as a workaround), and interacting with untrusted repositories materially increases risk. |
| Impact | This is a genuine high-priority vulnerability, though the signals are mixed. The CVSS 4.0 base score of 9.4 is well-supported: network attack vector (AV:N), low complexity (AC:L), no user interaction (UI:N), and full high impact to both the vulnerable system and subsequent systems (VC/VI/VA:H, SC/SI/SA:H) reflect a true remote-code-execution outcome on the n8n host. The one meaningful limiter is PR:L - exploitation requires an authenticated principal able to create or modify a workflow that uses the Git node, so this is not an anonymous internet-facing RCE. Supporting intelligence: a public exploit/PoC is referenced via the GitHub Security Advisory (GHSA-wpqc-h9wp-chmq), and a vendor patch (1.119.2) is confirmed. However, EPSS is only 0.66% (51st percentile) - low-to-moderate - and the CVE is NOT listed in CISA KEV, so there is no evidence of widespread or confirmed active exploitation at time of analysis. The combination of publicly available exploit code plus a low EPSS and no KEV listing suggests capability exists but mass exploitation has not materialized, consistent with the authenticated precondition narrowing the viable attacker population. Net: treat as a real priority for any environment where untrusted or lower-trust users can author/edit Git-node workflows, but the PR:L requirement meaningfully reduces exposure versus a pure unauthenticated RCE. |
| Exploit ScenarioDerived | An attacker with the ability to create or edit an n8n workflow uses the Git node's Add Config operation to set core.hooksPath to a directory (e.g., inside a cloned repo) containing a malicious pre-commit hook; a subsequent Git operation causes Git to execute that hook as a local system command, yielding arbitrary command execution on the n8n host. A public PoC/exploit is referenced in the vendor's GitHub Security Advisory, lowering the skill barrier for abuse. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 14, 2026
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusing the Git node's Add Config operation to write core.hooksPath, pointing Git at an attacker-controlled hook that is later executed as a local system command. Every n8n release from 0.123.1 up to and including 1.119.1 is affected; version 1.119.2 fixes the issue by forcing core.hooksPath=/dev/null unless an operator explicitly opts in with N8N_GIT_NODE_ENABLE_HOOKS and is available from the vendor. Publicly available exploit code exists and EPSS is 0.66% (51st percentile), but CISA KEV does not list this CVE as confirmed actively exploited, and exploitation requires a workflow-authoring account plus a subsequent Git operation.
RemediationAI
Upgrade to n8n 1.119.2 or later (vendor-released patch: 1.119.2), which forces core.hooksPath=/dev/null by default so attacker-supplied hooks in cloned repositories are never executed; do not re-enable hooks unless strictly required, since setting N8N_GIT_NODE_ENABLE_HOOKS=true restores the vulnerable behavior and should be treated as an explicit, documented risk acceptance. If immediate upgrade is not possible, exclude the Git node entirely from the deployment as documented at https://n8n-docs.teamlab.info/hosting/securing/blocking-nodes/#exclude-nodes - this removes the attack path but breaks any legitimate workflows that depend on Git operations - and block workflow authors from cloning or interacting with untrusted repositories through the Git node, since interacting with untrusted remotes is the trigger condition for hook execution. Because exploitation requires a user who can create or modify workflows, also review your n8n user roles and workflow-authoring permissions during triage, and audit existing workflows for Add Config calls that set core.hooksPath or other Git configuration keys. The fixing commit is https://github.com/n8n-io/n8n/commit/d5a1171f95f75def5c3ac577707ab913e22aef04.
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
The root cause is CWE-829 (Inclusion of Functionality from Untrusted Control Sphere): n8n's Git node is built on simple-git and exposes an Add Config operation that lets a workflow set arbitrary Git configuration keys. Because Git honors core.hooksPath, a workflow author can redirect the hook directory to a path inside a cloned repository and place an executable pre-commit (or similar) hook there, which Git then runs as a local system command during later Git operations on the n8n host. The official fix in commit d5a1171f95f75def5c3ac577707ab913e22aef04 adds an enableGitNodeHooks flag to SecurityConfig (environment variable N8N_GIT_NODE_ENABLE_HOOKS, default false) and, when hooks are disabled, unconditionally appends core.hooksPath=/dev/null to the Git node's config array so hooks cannot be loaded at all. The CPE cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:* confirms this is the Node.js npm package. The vendor scored this 9.4 under CVSS 4.0, while the independent assessment rates it CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, reflecting network reachability, low attack complexity, required low-privilege authentication, no user interaction, and a scope change with high confidentiality, integrity and availability impact.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Authenticated workflow author (PR:L) remotely triggers host command execution escaping the app sandbox (S:C) with full C/I/A impact; no user interaction and low complexity.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
n8n is an open source workflow automation platform. Versions 0.123.1 through 1.119.1 do not have adequate protections to prevent RCE through the project's pre-commit hooks. The Add Config operation allows workflows to set arbitrary Git configuration values, including core.hooksPath, which can point to a malicious Git hook that executes arbitrary commands on the n8n host during subsequent Git operations. Exploitation requires the ability to create or modify an n8n workflow using the Git node. This issue is fixed in version 1.119.2. Workarounds include excluding the Git Node (Docs) and avoiding cloning or interacting with untrusted repositories using the Git Node.
Executive ViewAI
A critical remote code execution flaw in n8n, the workflow automation platform, affects every release from 0.123.1 through 1.119.1 and allows anyone who can author or edit a workflow to run arbitrary commands on the n8n host. Because n8n servers typically hold credentials and API keys for dozens of connected business systems, a single malicious workflow could let a relatively low-privileged insider or compromised account pivot into the broader integration estate. Leadership should care because the exposure is broad, the fix is a straightforward upgrade to 1.119.2, and publicly available exploit code lowers the skill barrier for abuse.
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
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
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
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
SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute
Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox
n8n workflow automation platform Community Edition contains an authorization bypass vulnerability allowing authenticated
NVD
CVE.org
EPSS
GitHub
Exploit-DB