CVE-2026-44790: n8n: Arbitrary File Read via Git Node
Impact An authenticated user with permission to create or modify workflows could inject CLI flags on the Git node's Push operation allowing an attacker to read arbitrary files from the n8n server potentially leading to full compromise.
Patches The issue has been fixed in n8n versions 1.123.43, 2.20.7, and 2.22.1. 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: - Limit workflow creation and editing permissions to fully trusted users only. - Disable the Git node by adding n8n-nodes-base.git to the NODESEXCLUDE environment variable.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
--- n8n has adopted CVSS 4.0 as primary score for all security advisories. CVSS 3.1 vector strings are provided for backwards compatibility.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Other sources
n8n is an open source workflow automation platform. Prior to 1.123.43, 2.22.1, and 2.20.7, an authenticated user with permission to create or modify workflows could inject CLI flags on the Git node's Push operation allowing an attacker to read arbitrary files from the n8n server potentially leading to full compromise. This vulnerability is fixed in 1.123.43, 2.22.1, and 2.20.7.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/n8nto a version that resolves this vulnerability.Fixed in 2.20.7 - Upgrade
Upgrade
npm/n8nto a version that resolves this vulnerability.Fixed in 2.22.1 - Upgrade
Upgrade
npm/n8nto a version that resolves this vulnerability.Fixed in 1.123.43 - Configuration
Add n8n-nodes-base.git to the NODES_EXCLUDE environment variable to disable the Git node.
n8n NODES_EXCLUDE = n8n-nodes-base.git - Compensating control
Limit workflow creation and editing permissions to fully trusted users only.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-44790?
CVE-2026-44790 is classified as a high severity vulnerability, allowing potential full compromise of the n8n server.
How do I fix CVE-2026-44790?
To fix CVE-2026-44790, update n8n to versions 1.123.43, 2.20.7, or 2.22.1 or later.
Who is affected by CVE-2026-44790?
CVE-2026-44790 affects authenticated users of n8n who have permissions to create or modify workflows.
What are the consequences of CVE-2026-44790?
The consequences of CVE-2026-44790 include an attacker gaining the ability to read arbitrary files from the n8n server, which may lead to a full system compromise.
What types of n8n versions are vulnerable to CVE-2026-44790?
Versions of n8n up to and including 1.123.42, as well as versions between 2.0.0-rc.0 and 2.20.6 and between 2.21.0 and 2.22.0 are vulnerable to CVE-2026-44790.