GHSA-2vx9-7wpg-88jq: n8n: Legacy ExecuteWorkflow Node Bypassed File Path Restrictions
The legacy ExecuteWorkflow node in n8n can read workflow files from disk through its hidden localFile option without the path checks other file nodes apply. A user who can create workflows can bypass N8N_RESTRICT_FILE_ACCESS_TO. Fixed in n8n 2.19.3 and 2.20.0.
Published May 19, 2026 · Analysis Nov 3, 2026
What an attacker can do
The localFile source option of the ExecuteWorkflow node loads a workflow from a file path. It skips the checks that other file-reading nodes enforce, including the N8N_RESTRICT_FILE_ACCESS_TO restriction (CWE-22). The option has been hidden from the n8n UI since v1.2, but the REST API still accepts it.
An authenticated user with permission to create or modify workflows can send an arbitrary path through the API. The behavior reveals whether a file exists on the server host. If the file at that path is a valid workflow JSON, n8n loads and runs it, which can trigger actions in downstream systems wired into that workflow.
So the gain is file-existence probing and, in narrower cases, running workflow files the attacker can place on disk. It is not arbitrary file reading. Instances with many workflow editors, such as shared automation platforms, are most exposed. The sources do not report exploitation in the wild, and no CVE is assigned.
Who is affected
n8n below 2.19.3 on the 2.19 line, and below 2.20.0 on other lines. Exposure needs a user with workflow create or edit rights who can reach the REST API. Check the version:
npm ls n8nFor Docker, check the image tag you run.
n8n
- Ecosystem
- npm
- Affected
- < 2.19.3
- Fixed in
- 2.19.3
- Check
npm ls n8n
How to fix it
Upgrade to n8n 2.19.3 if you are on the 2.19 line, or to 2.20.0 or later otherwise:
npm install [email protected]The advisory gives two stopgaps that it says do not fully fix the issue: limit workflow creation and editing to fully trusted users, and restrict network access to the REST API to trusted users.
How to tell if you were hit
Look in n8n workflow definitions and API request logs for ExecuteWorkflow nodes whose source is localFile, especially ones created via the API rather than the UI, since the option is hidden there. Check for workflows referencing paths such as /etc, home directories or temp folders. Review who recently gained workflow edit permissions, and which workflows ran from file paths.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
The ExecuteWorkflow node's localFile source option read workflow files from disk without applying checks enforced by other file-reading nodes. An authenticated user with permission to create or modify workflows could supply an arbitrary file path via the REST API, bypassing the N8N_RESTRICT_FILE_ACCESS_TO restriction. This allowed the attacker to determine whether arbitrary files exist on the server host. Where the targeted path contained a valid workflow JSON file, the file could additionally be loaded and executed, potentially triggering actions on downstream systems connected to that workflow.
The localFile source option is hidden from the n8n UI since v1.2 but remains accessible via the REST API.
Patches
The issue has been fixed in n8n version 2.20.0 or 2.19.3. 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:
- Restrict workflow creation and editing permissions to fully trusted users only.
- Restrict network access to the n8n REST API to trusted users only.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Credited to YLChen-007.
Questions
- Is there a CVE for this n8n flaw?
No. The advisory GHSA-2vx9-7wpg-88jq has no CVE assigned.
- Can the attacker read any file?
The advisory says they can learn whether arbitrary files exist. A file is loaded and run only if it holds a valid workflow JSON. It does not describe reading arbitrary file content.
- Why is a hidden option dangerous?
The localFile option was removed from the UI in v1.2 but the REST API still accepts it, so an authenticated user can send it directly.
- Which versions fix it?
2.19.3 for the 2.19 line, and 2.20.0 or later for others.
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
