Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain authenticated n8n credentials with workflow permissions
-
DeliverySend crafted REST API request to ExecuteWorkflow node
-
ExploitSupply arbitrary file path via localFile source parameter
-
InstallBypass N8N_RESTRICT_FILE_ACCESS_TO restriction
-
C2Enumerate sensitive file existence via differential error responses
-
ExecuteIdentify valid workflow JSON on host filesystem
-
ImpactLoad and execute target workflow to trigger downstream system actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated n8n account with permission to create or modify workflows - unauthenticated attackers and accounts without workflow permissions cannot reach the vulnerable code path. The attack is delivered exclusively via the n8n REST API using the 'localFile' source option of the ExecuteWorkflow node; since this option is hidden from the UI since n8n v1.2, exploitation cannot occur through the standard web interface and requires deliberate API-level interaction. The N8N_RESTRICT_FILE_ACCESS_TO environment variable must be configured as a security control for the bypass to represent a meaningful security boundary violation - deployments that do not set this variable have no restriction to bypass, though arbitrary file path access is still possible. The elevated impact of workflow execution is further limited to filesystem paths where valid workflow JSON happens to exist. These factors collectively limit realistic exploitation to insider threats, compromised workflow-editor accounts, or multi-tenant deployments where not all editors are fully trusted. |
| Impact | The CVSS 4.0 score of 5.3 (Medium) appropriately reflects the authenticated barrier (PR:L), which meaningfully limits the exploitable population to users who already have workflow creation or modification rights. The network vector (AV:N), low complexity (AC:L), and absence of attack requirements (AT:N) mean that once authentication is satisfied, exploitation is trivial. The dual-impact nature - file existence probing plus conditional workflow execution - materially exceeds what the moderate score alone conveys, particularly because n8n workflows commonly integrate with databases, cloud APIs, internal services, and credential stores; executing an attacker-chosen workflow file could cascade into those downstream systems (reflected in SC:L/SI:L). EPSS data was not provided in the available intelligence, so exploitation probability cannot be quantitatively compared. No CISA KEV listing exists, and no POC has been identified, suggesting this is currently a limited-disclosure finding rather than an actively weaponized issue. Real-world priority is elevated in deployments where not all workflow editors are fully trusted administrators, and in environments that rely on N8N_RESTRICT_FILE_ACCESS_TO as a meaningful security boundary - those environments are directly undermined by this flaw. |
| Exploit ScenarioDerived | An authenticated n8n user with workflow modification rights bypasses the UI entirely and issues a crafted REST API request targeting the ExecuteWorkflow node with an arbitrary file path supplied via the localFile source parameter - for example pointing at /etc/passwd or application credential files - and infers file existence from the differing error responses returned by the server. If the attacker discovers a path containing valid workflow JSON (such as an exported workflow from another tenant or a sensitive automation definition stored on the host), they trigger a second request to load and execute that file, causing the n8n engine to run the workflow and invoke all downstream integrations it references, such as database queries, webhook calls, or cloud API operations. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 15, 2026
File path restriction bypass in n8n before 2.19.3 allows authenticated users with workflow creation or modification rights to circumvent the N8N_RESTRICT_FILE_ACCESS_TO security boundary via a legacy REST API code path, enabling arbitrary file existence disclosure on the host filesystem. Where a targeted path contains valid workflow JSON, that file can additionally be loaded and executed by the n8n engine, potentially triggering downstream actions on all systems connected to that workflow. No public exploit or active exploitation has been identified at time of analysis, but the low complexity and broad impact on connected downstream systems make this a meaningful risk in multi-tenant or partially-trusted deployments.
RemediationAI
The primary remediation is to upgrade n8n to version 2.19.3 or 2.20.0 (or any later release), as confirmed by the vendor in GHSA-2vx9-7wpg-88jq (https://github.com/n8n-io/n8n/security/advisories/GHSA-2vx9-7wpg-88jq). If an immediate upgrade is not feasible, the vendor identifies two temporary mitigations, both explicitly noted as incomplete: first, restrict workflow creation and editing permissions to fully trusted administrators only - this requires auditing all existing user grants and prevents untrusted insiders from exploiting the REST API path, but does not close the underlying code path; second, restrict network access to the n8n REST API via firewall rules, API gateway controls, or network segmentation to trusted hosts only - this reduces external exposure but does not protect against insider threats or already-compromised accounts. Neither workaround eliminates the vulnerable code path; both are short-term measures pending upgrade.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n is an open-source workflow automation platform distributed as the npm package 'n8n', affected across all versions captured by CPE cpe:2.3:a:n8n:n8n:*:*:*:*:*:*:*:* prior to 2.19.3. The vulnerable code path is the ExecuteWorkflow node's 'localFile' source option, which reads workflow definition files directly from disk. Unlike other file-reading nodes in n8n that enforce the N8N_RESTRICT_FILE_ACCESS_TO environment variable to sandbox permitted filesystem paths, this legacy option omits those checks entirely. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory, 'Path Traversal'): attacker-controlled file paths are accepted and resolved without canonicalization or directory boundary enforcement. Although this option was removed from the n8n UI in version 1.2, the underlying REST API endpoint was not disabled, leaving the code path reachable by any client that can construct a raw API request.
Know when N8n gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Network REST API access with low-privilege authenticated user; scope changes to downstream connected systems justify S:C; confidentiality and integrity impacts are limited to file disclosure and workflow execution respectively.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
n8n before 2.19.3 contains a file path restriction bypass in the legacy ExecuteWorkflow node's localFile source option, which reads workflow files from disk without the file-access checks enforced by other file-reading nodes. Although hidden from the UI since v1.2, it remains reachable via the REST API. An authenticated user with permission to create or modify workflows can supply an arbitrary file path to bypass the N8N_RESTRICT_FILE_ACCESS_TO restriction and determine whether arbitrary files exist on the host; where the targeted path contains a valid workflow JSON file, that file can additionally be loaded and executed.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger
An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
EUVD-2026-44625
GHSA-w243-4jxf-88rr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB