CVE-2026-86079: n8n: Path Injection in Elasticsearch and ElasticSecurity Nodes via Unencoded Identifiers
n8n's Elasticsearch and ElasticSecurity nodes put user-provided identifiers into the request path without encoding. A value with path separators or dot segments redirects the call to another index or to a cluster administration endpoint, using the stored Elasticsearch credential. Fixed in n8n 1.123.76, 2.37.7 and 2.38.2.
Published Sep 10, 2026 · Analysis Oct 24, 2026
What an attacker can do
The two nodes build REST endpoints by interpolating identifiers, such as an index name or document id, directly into the path. If that value contains / or .. segments, the request goes somewhere other than the endpoint the workflow author intended. An operation meant for one document can reach a different index, or a cluster administration endpoint.
The request is sent with the stored Elasticsearch credential, so it carries whatever rights that credential has. The attacker does not need the credential itself. They need to control an identifier field, and the CVSS vector lists low privileges. A common case is a workflow that passes a webhook or form value into the document id field.
The weakness is path traversal (CWE-22). The CVSS vector scores the damage on the downstream Elasticsearch system, not on n8n itself. The practical result is reading, changing or deleting data on indices the workflow never meant to touch, plus access to admin APIs if the credential allows it.
The patch encodes each identifier as a single URL path segment and rejects values that normalise away.
Who is affected
Affected: n8n below 1.123.76, 2.0.0 up to but not including 2.37.7, and 2.38.0 up to but not including 2.38.2. Only workflows that use the Elasticsearch or ElasticSecurity nodes are exposed, and the risk is highest where index or document identifier fields take external input. Check the version:
npm ls n8nFor Docker installs, check the image tag or the version in the n8n UI.
n8n
- Ecosystem
- npm
- Affected
- < 1.123.76
- Fixed in
- 1.123.76
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- >= 2.38.0, < 2.38.2
- Fixed in
- 2.38.2
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- >= 2.0.0, < 2.37.7
- Fixed in
- 2.37.7
- Check
npm ls n8n
How to fix it
Upgrade to 1.123.76, 2.37.7 or 2.38.2, or later:
npm install -g [email protected]The advisory lists stopgaps that it says do not fully remediate the risk:
- Limit instance access to fully trusted users.
- Add
n8n-nodes-base.elasticsearchandn8n-nodes-base.elasticSecurityto theNODES_EXCLUDEenvironment variable if you do not need them. - Audit workflows that use these nodes and make sure the index and document identifier fields take no externally controlled input.
How to tell if you were hit
Review Elasticsearch audit or access logs for requests made by the n8n credential to paths that do not match your workflows, such as _cluster, _security or other index names, or paths with .. or encoded separators. Inspect n8n workflows and execution data for identifier inputs containing / or ... The advisory gives no other indicators.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to vonypeto.
Questions
- Does CVE-2026-86079 expose the Elasticsearch credential?
The advisory does not say the credential leaks. It says requests are redirected to other endpoints while using the stored credential, so the attacker acts with that credential's access.
- Am I affected if I do not use the Elasticsearch nodes?
The advisory covers the Elasticsearch and ElasticSecurity nodes only. If neither is used in your workflows, this flaw does not apply.
- Which n8n versions fix it?
1.123.76, 2.37.7 and 2.38.2. Releases below 1.123.76, from 2.0.0 to below 2.37.7, and from 2.38.0 to below 2.38.2 are affected.
- Is there a workaround?
Add both node types to
NODES_EXCLUDE, restrict instance access and audit identifier inputs. The advisory says these only reduce the risk and do not fix it.
References
Read for this analysis:
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
