CVE-2026-25052: n8n's Improper File Access Controls Allow Arbitrary File Read by Authenticated Users
n8n before 1.123.18, and 2.x before 2.5.0, has weak file access controls that let a user who can create or edit workflows read sensitive files from the host. That exposes configuration and user credentials and can lead to takeover of any account on the instance. Upgrade to 1.123.18 or 2.5.0.
Published Feb 4, 2026 · Analysis Nov 1, 2026
What an attacker can do
n8n restricts which files workflows may touch, but the check was flawed. The weakness is classed as a time-of-check time-of-use race (CWE-367), so the check and the later file access can disagree. A user who can build workflows with file-system nodes can read files the controls were meant to block.
The attacker needs an authenticated account with permission to create or modify workflows. No user interaction is needed. Readable files include n8n's configuration and the data it keeps about users. The advisory states this gives critical configuration data and user credentials and leads to complete account takeover of any user, including owners and admins. From an owner account, the attacker can then reach stored credentials for connected services and run workflows with them. CVSS 4.0 scores it 9.4 with changed scope. The advisory names the Read/Write Files from Disk and Git nodes as the ones to restrict.
Who is affected
n8n below 1.123.18 on the 1.x line, and 2.0.0 up to but not including 2.5.0. Shared instances where several people can edit workflows are most 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.18
- Fixed in
- 1.123.18
- Check
npm ls n8n
How to fix it
Upgrade to n8n 1.123.18 (1.x) or 2.5.0 (2.x), or later:
npm install -g n8n@latestTemporary mitigations from the advisory, which the maintainers say do not fully fix the risk: limit workflow creation and editing to fully trusted users, and restrict access to nodes that touch the file system, particularly Read/Write Files from Disk and Git. The n8n docs on blocking nodes explain how to disable specific nodes globally. After upgrading, rotate user passwords, API keys and stored credentials if untrusted users had edit rights.
How to tell if you were hit
Review workflows that use the Read/Write Files from Disk or Git nodes, especially recent changes by accounts that do not normally build workflows, and any that read paths in the n8n data folder or system config. Check execution history for runs that return file contents. Look for unexpected logins, password resets or new API keys on owner and admin accounts.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
A vulnerability in the file access controls allows authenticated users with permission to create or modify workflows to read sensitive files from the n8n host system. This can be exploited to obtain critical configuration data and user credentials, leading to complete account takeover of any user on the instance.
Patches
The issue has been fixed in n8n version 1.123.18 and 2.5.0. 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 access to nodes that interact with the file system, particularly the "Read/Write Files from Disk" and "Git" nodes.
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 theolelasseux.
Questions
- What can an attacker read with CVE-2026-25052?
Sensitive files on the n8n host, including configuration data and user credentials, which the advisory says can lead to complete account takeover of any user.
- Do I need admin rights to exploit it?
No. Permission to create or modify workflows is enough.
- Which nodes should I restrict?
The advisory names Read/Write Files from Disk and Git. These are mitigations only; upgrade to fix the flaw.
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
