6.3medium
n8n: Path Injection in Elasticsearch and ElasticSecurity Nodes via Unencoded Identifiers
- Severity
- 6.3medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.34% (higher than 28% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-f2cp-m7mv-8jpv
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| n8n-io n8n | >= 2.38.0, < 2.38.2, >= 2.0.0, < 2.37.7, < 1.123.76 | CVE List |
| n8n (npm) | before 1.123.76, from 2.38.0 before 2.38.2, from 2.0.0 before 2.37.7 | GitHub Advisory Database |
| n8n n8n | before 1.123.76, from 2.0.0 before 2.37.7, from 2.38.0 before 2.38.2 | NVD |
All scores
| GitHub_M | 6.3medium CVSS:4.0 | 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 |
| GitHub | medium CVSS:4.0 | 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 |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
The Elasticsearch and ElasticSecurity nodes built REST endpoints by interpolating user-provided identifiers straight into the request path. A value containing path separators or dot segments changed which endpoint the request actually reached, so an operation intended for one document could hit another index or a cluster administration endpoint instead, under the stored Elasticsearch credential. The patch encodes each identifier as a single URL path segment and rejects values that normalise away.
Patches
The issue has been fixed in n8n versions 1.123.76, 2.37.7, and 2.38.2. Users should upgrade to one of these versions or later to remediate the vulnerability.
Workarounds
If upgrading is not immediately possible, administrators should consider the following temporary mitigations:
- Restrict n8n instance access to fully trusted users only.
- Disable the affected nodes by adding
n8n-nodes-base.elasticsearchandn8n-nodes-base.elasticSecurityto theNODES_EXCLUDEenvironment variable if they are not required. - Audit existing workflows that use these nodes and ensure that index and document identifier fields do not accept externally-controlled input.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
References
| https://github.com/n8n-io/n8n/security/advisories/GHSA-f2cp-m7mv-8jpv | mitigation, vendor-advisory, web | |
| https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.76 | release-notes, web | |
| https://github.com/n8n-io/n8n/releases/tag/n8n@2.37.7 | release-notes, web | |
| https://github.com/n8n-io/n8n/releases/tag/n8n@2.38.2 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-86079 | advisory | |
| https://github.com/n8n-io/n8n | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-86079 changed 2026-09-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f2cp-m7mv-8jpv changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-86079 changed 2026-09-11 | Public domain |