CVE-2026-25053: n8n has OS Command Injection in Git Node
The Git node in n8n before 1.123.10, and 2.x before 2.5.0, has OS command injection flaws. A user who can create or edit workflows can run arbitrary commands or read arbitrary files on the n8n host. Upgrade to 1.123.10 or 2.5.0, or disable the Git node.
Published Feb 4, 2026 · Analysis Nov 1, 2026
What an attacker can do
The Git node runs git operations on the n8n host, using parameters set in the workflow. The advisory says vulnerabilities in the node let those parameters inject operating system commands, or read arbitrary files. The weakness is classed as OS command injection (CWE-78).
The attacker needs an authenticated account that can create or modify workflows, and nothing else. Commands run with the n8n process's privileges, so they reach the environment, the n8n data folder with its encryption key and stored credentials, and the network the host can see. CVSS 4.0 scores it 9.4, with a changed scope.
Who is affected
n8n below 1.123.10 on the 1.x line, and 2.0.0 up to but not including 2.5.0. Only instances where the Git node is available and untrusted or semi-trusted users can edit workflows are realistically exposed.
n8n --version
npm ls n8nFor Docker, check the image tag.
n8n
- Ecosystem
- npm
- Affected
- >= 2.0.0, < 2.5.0
- Fixed in
- 2.5.0
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- < 1.123.10
- Fixed in
- 1.123.10
- Check
npm ls n8n
How to fix it
Upgrade to n8n 1.123.10 (1.x) or 2.5.0 (2.x), or later:
npm install -g n8n@latestShort-term mitigations from the advisory, which the maintainers say do not fully remediate the risk:
- Limit workflow creation and editing to fully trusted users.
- Restrict or disable the Git node if you do not need it. The n8n docs on blocking nodes explain how to disable nodes globally.
- Run n8n in a hardened environment with restricted OS privileges and network access.
How to tell if you were hit
Find workflows that use the Git node and check who created or changed them recently. Look in execution history for Git node runs with unusual parameters such as shell metacharacters, --upload-pack-style options, or paths outside the repository. On the host, check for child processes of n8n other than git, and for outbound connections from those processes. Rotate stored credentials if exploitation is suspected.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
Vulnerabilities in the Git node allowed authenticated users with permission to create or modify workflows to execute arbitrary system commands or read arbitrary files on the n8n host.
Patches
The issue has been fixed in n8n versions 2.5.0, and 1.123.10. Users should upgrade to this version 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.
- Restrict or disable access to the Git node if not essential for operations.
- Deploy n8n in a hardened environment with restricted operating system privileges and network access to reduce the impact of potential exploitation.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Resources
- n8n Documentation — Blocking nodes — how to globally disable specific nodes
---
n8n has adopted CVSS 4.0 as primary score for all security advisories. CVSS 3.1 vector strings are provided for backward compatibility.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Credited to fatihhcelik, simonkoeck, yadhukrishnam.
Questions
- Is the Git node required to be enabled for CVE-2026-25053?
Yes, the flaw is in the Git node. The advisory says you can restrict or disable that node if it is not essential, as a short-term mitigation.
- Who can exploit it?
Any authenticated user with permission to create or modify workflows. No admin role or user interaction is stated as needed.
- What can the attacker do?
Execute arbitrary system commands or read arbitrary files on the n8n host, with the n8n process's privileges.
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 entriesCVE-2026-86073
n8n: Per-Resource OAuth Consent Bypass via Unbound Refresh Token Resource Substitution
medium5.9Sep 10, 2026CVE-2026-86074
n8n: Instance AI Credential Setup Accepts Unvalidated Probe URL from Fetched Content
medium5.9Sep 10, 2026CVE-2026-86075
n8n: Unauthenticated Persistent Storage Exhaustion via OAuth Dynamic Client Registration Endpoint
high8.7Sep 10, 2026CVE-2026-86076
n8n: Expression Sandbox Escape via Class-Field Sanitizer Rebinding Can Lead to Code Execution
high8.7Sep 10, 2026CVE-2026-86077
n8n: Anonymous Approval-Gate Bypass via Reused resumeToken over the Chat WebSocket
medium6.3Sep 10, 2026CVE-2026-86078
n8n: Prototype Pollution via Workflow Structure Summary Can Lead to Denial of Service
medium6.0Sep 10, 2026
