GHSA-f2cp-m7mv-8jpv: Path Traversal

Published Sep 10, 2026
·
Updated

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.elasticsearch and n8n-nodes-base.elasticSecurity to the NODESEXCLUDE environment 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.

Affected Software

3 affected componentsFixes available
npm/n8n>=2.0.0<2.37.7
2.37.7
npm/n8n>=2.38.0<2.38.2
2.38.2
npm/n8n<1.123.76
1.123.76

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/n8n to a version that resolves this vulnerability.

    Fixed in 2.37.7
  2. Upgrade

    Upgrade npm/n8n to a version that resolves this vulnerability.

    Fixed in 2.38.2
  3. Upgrade

    Upgrade npm/n8n to a version that resolves this vulnerability.

    Fixed in 1.123.76
  4. Upgrade

    Upgrade n8n-nodes-base.elasticsearch / n8n-nodes-base.elasticSecurity to a version that resolves this vulnerability.

    Fixed in 1.123.76
  5. Upgrade

    Upgrade n8n-nodes-base.elasticsearch / n8n-nodes-base.elasticSecurity to a version that resolves this vulnerability.

    Fixed in 2.37.7
  6. Upgrade

    Upgrade n8n-nodes-base.elasticsearch / n8n-nodes-base.elasticSecurity to a version that resolves this vulnerability.

    Fixed in 2.38.2
  7. Configuration

    Disable the affected Elasticsearch and ElasticSecurity nodes by adding `n8n-nodes-base.elasticsearch` and `n8n-nodes-base.elasticSecurity` to the `NODES_EXCLUDE` environment variable if they are not required.

    n8n (environment configuration) NODES_EXCLUDE = n8n-nodes-base.elasticsearch,n8n-nodes-base.elasticSecurity
  8. Compensating control

    Restrict the n8n instance access to fully trusted users only.

  9. Compensating control

    Audit existing workflows that use these nodes and ensure that index and document identifier fields do not accept externally-controlled input.

Event History

Sep 10, 2026
Advisory Published
via GitHub·09:05 PM
Data Sourced
via GitHub·09:05 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

Who can exploit this issue in practice?

An attacker needs the ability to influence identifier values used by Elasticsearch or ElasticSecurity node operations, such as index or document identifiers. The affected request is made using the stored Elasticsearch credential, so the resulting access is bounded by that credential's permissions.

2

Are all n8n installations affected by default?

The issue affects workflows using the Elasticsearch or ElasticSecurity nodes where identifier fields can receive attacker-controlled values. Instances that do not use these nodes, or whose relevant identifier fields are not externally controlled, are not exposed through this path.

3

What can be done before an upgrade is available?

Restrict access to the n8n instance to fully trusted users. If the nodes are not needed, disable them with the NODES_EXCLUDE environment variable by adding n8n-nodes-base.elasticsearch and n8n-nodes-base.elasticSecurity; also audit existing workflows to ensure index and document identifiers do not accept externally controlled input.

4

How can administrators identify potentially affected workflows?

Review workflows that use the Elasticsearch or ElasticSecurity nodes and inspect index and document identifier fields. Workflows are potentially affected when those values can be supplied or influenced by external input, particularly if path separators or dot segments can be included.

5

Which releases contain the fix?

The fix is available in n8n versions 1.123.76, 2.37.7, and 2.38.2, and later versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203