Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as n8n workflow editor
-
DeliveryCreate Elasticsearch node with path-traversal identifier
-
ExploitExecute workflow
-
Executionn8n interpolates unsanitised identifier into REST path
-
PersistRequest routed to unintended Elasticsearch index or admin endpoint
-
ImpactRead sensitive cluster data or invoke privileged API under stored credential
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 | The attacker must hold a low-privilege account on the n8n instance sufficient to create or edit workflows (PR:L). The vulnerable workflow must include an Elasticsearch or ElasticSecurity node that uses a pre-configured Elasticsearch credential. The scope of accessible endpoints is bounded by the permissions of that stored credential - if the credential is scoped to a single index, only that index and its sub-paths are reachable; a cluster-admin credential expands impact to all API endpoints. No special network position is required beyond reaching the n8n web interface (AV:N). The traversal is exploitable at workflow execution time, which may be triggered manually or on a schedule. Deployments where only administrators can define workflows are not practically affected. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N) scores 6.3 (Medium) and correctly captures the scope change to the Elasticsearch cluster (SC:H) while limiting vulnerable-system impact. However, the SI:N assignment warrants scrutiny: the description explicitly states that cluster administration endpoints - not just read-only data endpoints - can be reached. Administration APIs in Elasticsearch (e.g., _cluster/settings, _snapshot) carry write and delete capabilities, suggesting at minimum SI:L is defensible. There is no CISA KEV listing and no public exploit identified, so real-world exploitation remains theoretical. EPSS data is not provided. The practical bar is PR:L: an attacker must control a workflow in the n8n instance, which in many self-hosted deployments could be any registered user. Organisations that expose n8n to untrusted users or run multi-tenant instances face the highest risk, particularly if the stored Elasticsearch credential has broad cluster-level permissions. |
| Exploit ScenarioDerived | A workflow editor on a shared n8n instance creates an Elasticsearch node with a document ID or index name crafted to include path traversal sequences such as '../../_cluster/state'. When the workflow executes, n8n constructs a REST URL by concatenating the unsanitised identifier, causing the Elasticsearch client to issue a GET or POST against the cluster state endpoint using the stored credential. The attacker retrieves cluster topology, index names, shard details, or invokes administrative APIs, all without possessing direct Elasticsearch credentials. No public PoC has been identified, but the vulnerability is straightforward to reproduce from the code-level description. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 09, 2026
Path traversal in n8n's Elasticsearch and ElasticSecurity workflow nodes allows a low-privileged workflow editor to escape the intended Elasticsearch index scope and reach arbitrary indices or cluster administration endpoints using the platform's stored Elasticsearch credentials. Exploitation requires the ability to create or edit workflows containing Elasticsearch nodes, and the root cause is the absence of proper URL path-segment encoding (toPathSegment) in GenericFunctions.ts before identifiers are interpolated into REST request paths. No public exploit code or CISA KEV listing is present at time of analysis, but the scope change to a backend Elasticsearch cluster elevates the real-world impact beyond the CVSS base score suggests.
RemediationAI
Upgrade to a fixed release: n8n 1.123.76 (1.x legacy branch), n8n 2.37.7 (2.x stable), or n8n 2.38.2 (2.38.x branch). Release assets are available at https://github.com/n8n-io/n8n/releases/tag/n8n@2.37.7 and https://github.com/n8n-io/n8n/releases/tag/n8n@2.38.2. Until patching is possible, restrict workflow-creation permissions to fully trusted users, and tighten the Elasticsearch API key or credential used by n8n to the minimum required index-level permissions (avoid cluster-admin or wildcard index grants). Applying index-level RBAC in Elasticsearch so that n8n's credential cannot reach cluster-administration endpoints limits the traversal's blast radius without requiring n8n downtime. Note that restricting n8n user roles reduces exposure but does not eliminate the underlying encoding flaw.
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, self-hostable workflow automation platform (EUVD-2026-74277). Its Elasticsearch integration node constructs REST API URLs by directly concatenating workflow-controlled values - index names and document identifiers - into the request path without percent-encoding path-separator characters (forward slashes, dot segments). This is a classic CWE-22 (Path Traversal) manifesting in an HTTP request path rather than a filesystem context: a crafted identifier such as '../_cluster/settings' traverses out of the intended index path and selects a cluster administration endpoint. The affected code is packages/nodes-base/nodes/Elastic/Elasticsearch/GenericFunctions.ts. Because the HTTP call is authenticated with the operator-configured Elasticsearch credential stored in n8n, any index or API endpoint reachable by that credential is potentially accessible to the attacker.
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:N/VI:N/VA:N/SC:H/SI:N/SA:N
PR:L for workflow-editor access required; S:C and C:H for cross-index data access; I:L because cluster admin endpoints imply limited write capability.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
n8n is an open source workflow automation platform. Prior to 1.123.76, 2.37.7, and 2.38.2, the Elasticsearch and ElasticSecurity nodes interpolated workflow-controlled index and document identifiers directly into REST request paths. An identifier containing path separators or dot segments could select another index or a cluster administration endpoint under the stored Elasticsearch credential. The affected request construction includes packages/nodes-base/nodes/Elastic/Elasticsearch/GenericFunctions.ts and the missing toPathSegment encoding. This issue is fixed in versions 1.123.76, 2.37.7 and 2.38.2.
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-74277
GHSA-f2cp-m7mv-8jpv
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB