n8n Git node allows reading arbitrary files from the server
What this means
An authenticated user who can create or change workflows could read any file on the n8n server, including secrets, configuration files, and other sensitive data. This could lead to complete compromise of the n8n instance and exposure of data it has access to.
SecurityElites Manager Brief: the decision in one minute
Users with workflow editing permission in n8n can read any file on the server by exploiting the Git node. This is a critical flaw that could expose all secrets and data stored in n8n. Upgrade all n8n instances immediately to versions 1.123.43, 2.20.7, or 2.22.1.
| SecurityElites Fix-First Score | 51 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 7 days Critical severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform engineering or DevOps team managing n8n. |
| Likely effort | Estimate 30 minutes to 1 hour per n8n instance: download the patched version, upgrade, and restart. Longer if you must audit who had workflow editing permission or what files may have been read. |
Questions to ask your team or supplier
- Who in our organization has permission to create and edit n8n workflows, and are all of them fully trusted?
- Do we have logs of all Git node activity and file access in n8n from before we patch? If not, can we enable them before upgrading?
- If we find evidence that this was exploited, what credentials or secrets stored in n8n would be most critical to rotate?
Message you can forward to the owning team
Security notice: n8n Git node allows reading arbitrary files from the server (CVE-2026-44790)
Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to n8n 2.22.1 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-44790-n8n-git-node-allows-reading-arbitrary-files-from-the/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01720What is at stake in your AI setup
- API keys and authentication tokens stored in n8n that connect to AI providers or external systems could be read and stolen
- Workflow definitions and logic, including prompts and system instructions used with AI nodes, could be exposed
- Credentials and secrets configured in n8n connections could be accessed, allowing an attacker to impersonate n8n when calling external AI services
Who is exposed
- n8n instances running any version before 1.123.43
- n8n instances running 2.21.0 to 2.22.0 (inclusive)
- n8n instances running 2.0.0-rc.0 to 2.20.6 (inclusive)
- Teams with workflow creation or editing permissions, especially non-administrators
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| n8n npm | Every version before 1.123.43; 2.21.0 up to, but not including, 2.22.1; 2.0.0-rc.0 up to, but not including, 2.20.7 | 2.22.1 or later |
Each maintained branch has its own fixed version. Stay on your branch if you cannot jump to the newest: n8n 1.123.43, 2.20.7, 2.22.1.
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | No known attacks and no public attack code when CISA last reviewed it |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | An ordinary user account |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | High |
| Can attackers automate it at scale | No, according to CISA. Each target needs manual work |
| How much control an attacker gains | Total control of the affected software, according to CISA |
Read from the official severity rating: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Kind of coding mistake
- CWE-88
If you cannot upgrade today
- If you cannot upgrade immediately, disable the Git node by setting the environment variable `NODES_EXCLUDE=n8n-nodes-base.git` and restart n8n.
- Restrict workflow creation and editing permissions to only fully trusted administrators until you can upgrade.
- These are temporary measures only and do not fully protect against the vulnerability; upgrading is mandatory.
Signs it may already have been used against you
- Check n8n logs for Git node activities, especially Push operations, before the patch date
- Look for unusual file read operations or errors in n8n logs that mention file paths outside expected directories
- Review n8n workflow execution logs for any Git node executions by non-admin users around the time this vulnerability was likely exploited
- Examine system logs on the n8n server for unexpected process spawning or file access that might indicate the vulnerability was used
Log searches to start from
Git node push operations executed before patch date (adapt field names for your logs)Splunk
source="n8n*" "Git" "push" OR "git node" | search _time < [substitute patch date] | stats count by user, workflow_nameFile read errors or unusual paths in n8n logs (adapt field names for your logs)Elastic
service:n8n AND (message:"file" OR message:"read") AND timestamp < [substitute patch date] | group_by(source_user, file_path)Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.
SecurityElites Fix Guide: step by step
- Find all n8n instances in your environmentList every machine, container, or service running n8n. Check your infrastructure inventory, container registries, Kubernetes clusters, and npm audit logs.
- Check the current version of each n8n instanceLog in to each n8n instance and go to Settings > About to see the version number. Or run `npm list n8n` in the directory where n8n is installed.
- Identify instances that need patchingMark instances as needing a patch if they are running: any version before 1.123.43, versions 2.21.0 to 2.22.0, or versions 2.0.0-rc.0 to 2.20.6.
- Review who has workflow creation and editing permissionsIn n8n, go to Settings > Users or Access Control. Document which users can create or edit workflows. These are the users who could exploit this vulnerability.
- Back up the n8n database and configurationExport or snapshot your n8n data and environment variables before upgrading. This protects you in case something goes wrong during the patch.
- Upgrade to a patched versionIf running a 1.x version, upgrade to 1.123.43 or later. If running a 2.0.0-rc.0 to 2.20.6 version, upgrade to 2.20.7 or later. If running 2.21.0 to 2.22.0, upgrade to 2.22.1 or later. Follow n8n's upgrade guide for your deployment method.
- Verify the patch is in placeAfter upgrading, go to Settings > About and confirm the version number matches one of the patched versions (1.123.43, 2.20.7, or 2.22.1) or is newer.
- Investigate possible exposureCheck n8n logs and audit trails for any unusual Git node activity or file access before the patch date. If you find evidence of exploitation, assume sensitive files may have been read and begin incident response (rotate secrets, review access logs, etc.).
How to confirm it is fixed: Log in to n8n and confirm in Settings > About that the version is 1.123.43, 2.20.7, 2.22.1, or newer.
SecurityElites Quick Fixes: copy and paste
Upgrade n8n with npmupgrade
npm install n8n@2.22.1
npm ls n8nCheck n8n version from npmfor this issue
npm list n8nDisable the Git node as a temporary workaround (set environment variable)for this issue
export NODES_EXCLUDE=n8n-nodes-base.gitKeep file access inside one directory (Python)general hardening
from pathlib import Path
BASE = Path("/srv/app/data").resolve()
def safe_path(name: str) -> Path:
p = (BASE / name).resolve()
if not p.is_relative_to(BASE):
raise ValueError("path outside allowed directory")
return pTest in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2026-44790) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - n8n (npm): must be 2.22.1 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## n8n Git node allows reading arbitrary files from the server (CVE-2026-44790)
**Severity:** Critical | **SE Fix-First Score:** 51/100 | **Fix window:** Within 7 days
**Record:** SE-AIV-01720 https://securityelites.com/ai-vulnerabilities/cve-2026-44790-n8n-git-node-allows-reading-arbitrary-files-from-the/
### Why this matters
An authenticated user who can create or change workflows could read any file on the n8n server, including secrets, configuration files, and other sensitive data. This could lead to complete compromise of the n8n instance and exposure of data it has access to.
### What to do
1. Find all n8n instances in your environment
2. Check the current version of each n8n instance
3. Identify instances that need patching
4. Review who has workflow creation and editing permissions
5. Back up the n8n database and configuration
6. Upgrade to a patched version
7. Verify the patch is in place
8. Investigate possible exposure
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-44790-n8n-git-node-allows-reading-arbitrary-files-from-the/
### Done when
- [ ] n8n is at 2.22.1 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Log in to n8n and confirm in Settings > About that the version is 1.123.43, 2.20.7, 2.22.1, or newer.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- n8n legacy expression engine allows code execution via JSON.stringify override High · CVE-2026-86083
- n8n OpenAI node bypasses domain restrictions on model search High · CVE-2026-86082
- n8n Git node can freeze the instance with a crafted path High · CVE-2026-86081
- n8n OAuth registration accepts unlimited field sizes, filling the database High · CVE-2026-86075
- n8n expression compiler can run arbitrary code through class field names High · CVE-2026-86076
- n8n Edit Fields node can crash the whole instance with a bad field name High · CVE-2026-72749
The same kind of mistake in other AI tools
- Nik Voice Ticketing AI allows upload and run of harmful files without login Critical · CVE-2026-143966
- NLTK can overwrite files outside its data folder via hardlinks during package extraction High · CVE-2026-128135
- MLflow can read files outside its data folder via model version prompts High · CVE-2026-116690
- LiteLLM proxy can be made to read files by authenticated users High · GHSA-g5ff-637f-6q2m
- MLflow can write files outside trace directory via crafted trace ID High · CVE-2026-53995
Change history
- 14 May 2026: Made public
- 2 Dec 2026: Published
Official record
## 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
Weakness type: CWE-88
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-44790For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.