NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · n8n

CVE-2026-44790: n8n Has an Arbitrary File Read via Git Node

criticalCVSS 4.0 9.4 · 3.1 8.8GHSA-57g9-58c2-xjg3

The Git node in n8n lets a user who can edit workflows inject command-line flags into the Push operation and read arbitrary files from the n8n server. That can expose credentials and lead to full compromise. Fixed in n8n 1.123.43, 2.20.7 and 2.22.1.

Published May 14, 2026 · Updated Jul 20, 2026 · Analysis Oct 27, 2026

What an attacker can do

This is argument injection (CWE-88). The Git node's Push operation runs the git command line, and workflow-supplied values can add extra flags to it. The advisory does not name the flags or the input field. It states the result: an attacker can read arbitrary files from the n8n server.

The attacker must be logged in with permission to create or modify workflows. No further interaction is needed. File read on an n8n host is serious. The n8n config and encryption key, environment files, SSH keys and the SQLite database can all be on disk. With the encryption key and database, an attacker can decrypt every stored credential for connected services. That is why the advisory says it can lead to full compromise. Instances with many workflow editors, or with editors who are not administrators, carry the most risk.

Who is affected

n8n on npm below 1.123.43, 2.0.0-rc.0 up to before 2.20.7, and 2.21.0 up to before 2.22.1. Only workflows that use the Git node's Push operation reach the flaw, but an attacker who can edit workflows can add such a node. Check the version:

npm ls n8n

Docker users can run n8n --version inside the container.

n8n

Ecosystem
npm
Affected
< 1.123.43
Fixed in
1.123.43
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.21.0, < 2.22.1
Fixed in
2.22.1
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.0.0-rc.0, < 2.20.7
Fixed in
2.20.7
Check
npm ls n8n

How to fix it

Upgrade to 1.123.43, 2.20.7 or 2.22.1, or later, on your release line:

npm install -g [email protected]

Temporary measures from the advisory: limit workflow creation and editing to fully trusted users, or set NODES_EXCLUDE to include n8n-nodes-base.git so the Git node is disabled. The advisory says these do not fully remediate the risk.

How to tell if you were hit

Review workflows containing a Git node with the Push operation, and look at their parameters for values that start with a dash or look like git options. Check which accounts created or changed them and when. Check n8n execution logs for Git node runs you do not recognise. On the host, look for git processes started by n8n with unusual arguments. If you find signs of abuse, rotate the credentials and the encryption key that n8n holds.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to simonkoeck.

Questions

What can an attacker read with CVE-2026-44790?

Arbitrary files from the n8n server, according to the advisory. The sources do not list specific files. Config, keys and the credentials database are typical targets on an n8n host.

Does it need the Git node to be in use already?

The flaw sits in the Git node's Push operation. An attacker with workflow edit rights can add that node. Disabling n8n-nodes-base.git through NODES_EXCLUDE blocks it as a stopgap.

Which versions are patched?

1.123.43, 2.20.7 and 2.22.1, and later releases.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More n8n vulnerabilities

All n8n entries