Skip to main content

n8n CVE-2025-65964

CRITICAL
Inclusion of Functionality from Untrusted Control Sphere (CWE-829)
2025-12-09 security-advisories@github.com
9.4
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to n8n with workflow-edit rights
  2. Delivery
    Create Git node workflow using Add Config
  3. Exploit
    Set core.hooksPath to attacker-controlled hook
  4. Execution
    Trigger subsequent Git operation
  5. Persist
    Git executes pre-commit hook
  6. Impact
    Run 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.7% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

npm n8n fix: 1.119.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

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

Vendor (github) PRIMARY 9.4 CRITICAL
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
vuln.today AI 9.9 CRITICAL

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.

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

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
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 49% exploitable
Prevalence
Medium
popular self-hosted workflow automation tool, common but not universal in enterprises
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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 CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
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
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

68
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +47
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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-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-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

CVE-2026-33713 HIGH POC
8.7 Mar 25

SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute

CVE-2026-0863 HIGH POC
8.5 Jan 18

Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox

CVE-2026-33663 HIGH POC
8.5 Mar 25

n8n workflow automation platform Community Edition contains an authorization bypass vulnerability allowing authenticated

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