Skip to main content

n8n CVE-2026-44790

| EUVDEUVD-2026-38484 CRITICAL
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-05-14 https://github.com/n8n-io/n8n GHSA-57g9-58c2-xjg3
9.4
CVSS 4.0 · Vendor: https://github.com/n8n-io/n8n
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate as workflow editor
  2. Delivery
    Create workflow using Git node Push
  3. Exploit
    Inject CLI flag into Git argument
  4. Install
    Trigger workflow execution
  5. C2
    Git reads attacker-chosen host file
  6. Execute
    Exfiltrate contents via workflow output
  7. Impact
    Escalate to full server compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
Exploitation Conditions

Exploitation requires an authenticated n8n account with permission to create or modify workflows (CVSS PR:L) on a vulnerable instance running n8n < 1.123.43, >= 2.0.0-rc.0 < 2.20.7, or >= 2.21.0 < 2.22.1, and the Git node (n8n-nodes-base.git) must not be disabled via the NODES_EXCLUDE environment variable. The attacker must specifically use the Git node's Push operation and supply a value that the underlying git invocation interprets as a CLI flag. No user interaction by another party is required (UI:N), and the workflow simply needs to execute once. Limiting factors: instances where workflow editing is restricted to highly trusted operators effectively neutralize the bug, and deployments that already exclude the Git node are not exploitable through this path.

Impact

Signals are mixed but lean toward priority remediation in any multi-tenant or shared n8n deployment. CVSS 3.1 9.4 with vector AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H and the matching CVSS 4.0 9.4 reflect a network-reachable, low-complexity flaw with scope change and high impact on all CIA dimensions; PR:L correctly captures that an authenticated workflow-editor is required. EPSS is very low (0.04%, 14th percentile) and no KEV listing or public exploit exists, indicating no observed mass exploitation today - consistent with a vulnerability that requires authenticated access to a workflow editor role rather than an unauthenticated internet-facing primitive. The most important deployment nuance: if n8n is operated as single-tenant by trusted operators (the common self-hosted pattern), real risk is bounded; for n8n Cloud-style or multi-user installations where workflow authoring is delegated, this is effectively a privilege escalation from low-trust editor to host file read and likely RCE, and should be patched immediately.

Exploit ScenarioDerived

A user holding the workflow-editor role on a shared n8n instance creates or edits a workflow that uses the Git node configured for Push, supplying a crafted value (such as a malicious remote name or path beginning with --upload-pack= or referencing a path that gets parsed as a Git option) so that the spawned git push command interprets attacker input as additional CLI flags. When the workflow executes, the injected flag causes Git to read attacker-chosen files from the n8n host - for example SSH keys, environment-variable files, or n8n's own credentials store - and surface their contents back through workflow output, escalating to full server compromise as the advisory notes. No public exploit identified at time of analysis, but the primitive is straightforward and well-documented in prior Git argument-injection research.

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

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

Alert me

AnalysisAIv3 – Jun 23, 2026

Argument injection in the n8n workflow automation platform's Git node allows authenticated users with workflow edit privileges to inject CLI flags into the Git Push operation, enabling arbitrary file read from the n8n server and potentially full host compromise. The flaw affects n8n versions prior to 1.123.43, 2.20.7, and 2.22.1, and is rated CVSS 9.4 (4.0) with no public exploit identified at time of analysis. EPSS is low at 0.04% (14th percentile), and the bug is classified under CWE-88 (Argument Injection).

Earlier versions of this analysis (2)
v2 Jun 23, 2026 - 18:30 cvss changed CVSS 9.4

Arbitrary file read in n8n workflow automation platform allows authenticated users with workflow create/modify permissions to inject CLI flags into the Git node's Push operation, enabling reading of arbitrary files from the server and potentially leading to full compromise. Affects n8n versions prior to 1.123.43, 2.20.7, and 2.22.1. No public exploit identified at time of analysis, and EPSS probability is low (0.04%), but vendor-confirmed CVSS 4.0 score of 9.4 reflects high impact given the privilege escalation potential.

v1 May 14, 2026 - 17:02

Arbitrary file read in n8n workflow automation allows authenticated users with workflow editing permissions to inject malicious CLI flags into the Git node's Push operation, enabling access to sensitive files on the n8n server and potential full system compromise. The vulnerability affects all n8n versions prior to the patched releases (1.123.43, 2.20.7, 2.22.1) and exploits CWE-88 (argument injection) through insufficient sanitization of Git command parameters. No public exploit code or CISA KEV listing identified at time of analysis, but the vendor-confirmed vulnerability requires only low-privileged authenticated access with workflow permissions.

RemediationAI

Vendor-released patches are available: upgrade to n8n 1.123.43, 2.20.7, or 2.22.1 (or any later release on those branches), as documented in the GitHub Security Advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-57g9-58c2-xjg3. If immediate upgrade is not possible, the vendor's documented workarounds are to disable the Git node entirely by adding n8n-nodes-base.git to the NODES_EXCLUDE environment variable (this breaks any existing workflows that rely on Git Push/Pull operations, so audit usage first), and to restrict workflow create/edit permissions strictly to fully trusted operator-level users, removing the editor role from any partially trusted accounts. Both mitigations are explicitly described as partial by the vendor and should be treated as temporary until the patched version is deployed.

Affected VersionsENISA

n8n 2.0.0-rc.0, < 2.20.7
n8n 2.21.0, < 2.21.1
n8n < 1.123.43

Affected Packages

npm n8n fix: 1.123.43, 2.20.7, 2.21.1, 2.22.1
euvd n8n_2_0_0_rc_0 fix: 2.20.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

n8n is a Node.js-based, low-code workflow automation platform (npm package n8n) that ships built-in 'nodes' for integrating external services. The vulnerable component is the Git node (n8n-nodes-base.git), which invokes the git command line under the hood. CWE-88 (Improper Neutralization of Argument Delimiters) describes the root cause: user-controlled values passed to the Git Push operation are concatenated into the argv vector without proper separation, so a value beginning with - or -- is interpreted as a flag by git push. Because git supports options such as --upload-pack and --receive-pack that can execute helper programs, or features like core.sshCommand that read external files, attacker-controlled flags can be leveraged to read arbitrary files (and per the advisory, potentially escalate to full server compromise) under the n8n process identity.

Know when the next one hits your stack

  • 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 (https://github.com/n8n-io/n8n) 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

Network-reachable web UI (AV:N), trivial flag injection (AC:L), requires authenticated workflow editor (PR:L), no user interaction, host-level file read escapes app scope (S:C) with full CIA impact.

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 (https://github.com/n8n-io/n8n).

CVSS VectorVendor: https://github.com/n8n-io/n8n

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

Lifecycle Timeline

4
Analysis Updated
Jun 23, 2026 - 18:31 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 23, 2026 - 18:30 vuln.today
v2 - CVSS changed
CVSS changed
Jun 23, 2026 - 18:22 NVD
9.4 (CRITICAL)
CVE Published
May 14, 2026 - 16:17 nvd
CRITICAL

DescriptionCVE.org

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

Executive ViewAI

Why It Matters

The n8n workflow automation platform contains a critical argument injection vulnerability in its Git node that enables authenticated users with workflow edit privileges to execute arbitrary Git commands, risking unauthorized file access and potential complete host system compromise. Organizations deploying n8n with multiple workflow editors face immediate risk of confidential data exposure and infrastructure compromise.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Prevalence
Medium
popular self-hosted workflow automation tool, growing but not ubiquitous
Threat Intel
2
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS NEWS GHSA GitHub VulDB

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 No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Very High

Priority Score

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

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