CVE-2026-59259: n8n - Permission Bypass via Expression Parser Mismatch in External Secrets

Published Jul 15, 2026
·
Updated

Impact Due to a mismatch between the static validation check and the runtime expression engine, an authenticated user with credential create or update permissions, but without the externalSecret:list scope, could embed external secret references into credentials in forms the validation did not detect. These references would resolve at workflow execution time, exposing secret values the user was not authorized to access.

This issue only affects instances where an external secrets provider is configured and Advanced Permissions are in use.

Patches The issue has been fixed in n8n versions 1.123.61, 2.27.4, and 2.28.1. 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 credential creation and update permissions to fully trusted users only. - Audit existing credentials for unexpected external secret references.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Other sources

n8n before versions 1.123.61, 2.27.4, and 2.28.1 contains a permission bypass vulnerability in external secrets handling caused by a mismatch between the static validation check and the runtime expression engine. An authenticated user with credential create or update permissions but without the externalSecret:list scope can embed external secret references into credentials in forms the static validation does not detect; these references resolve at workflow execution time, exposing secret values the user is not authorized to access. This issue only affects instances where an external secrets provider is configured and Advanced Permissions are in use.

MITRE

Affected Software

8 affected componentsFixes available
n8n<1.123.61, >=2.0.0<2.27.4, >=2.0.0<2.28.1
n8n N8n Node.js<1.123.61
n8n N8n Node.js>=2.0.0<2.27.4
n8n N8n Node.js=2.28.0
n8n N8n Node.js=2.28.0
npm/n8n>=2.0.0-rc.0<2.27.4
2.27.4
npm/n8n>=2.28.0<2.28.1
2.28.1
npm/n8n<1.123.61
1.123.61

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.27.4
  2. Upgrade

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

    Fixed in 2.28.1
  3. Upgrade

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

    Fixed in 1.123.61
  4. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 1.123.61
  5. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 2.27.4
  6. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 2.28.1
  7. Compensating control

    Restrict credential creation and update permissions to fully trusted users only (to mitigate users embedding external secret references via expression parser mismatch).

  8. Operational

    Audit existing credentials for unexpected external secret references that may resolve at workflow execution time and expose secret values the creator/updater was not authorized to access.

Event History

Jul 15, 2026
CVE Published
via MITRE·11:25 AM
Data Sourced
via MITRE·11:25 AM
DescriptionWeakness
Data Sourced
via NVD·12:18 PM
DescriptionSeverityWeaknessAffected Software
Jul 22, 2026
Advisory Published
via GitHub·10:21 PM
Data Sourced
via GitHub·10:21 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-59259?

CVE-2026-59259 has a medium severity rating with a CVSS score of 6.

2

How do I fix CVE-2026-59259?

To mitigate CVE-2026-59259, upgrade n8n to versions 1.123.61, 2.27.4, or 2.28.1 or later.

3

What type of vulnerability is CVE-2026-59259?

CVE-2026-59259 is a permission bypass vulnerability linked to external secrets handling.

4

Who is affected by CVE-2026-59259?

Users of n8n prior to versions 1.123.61, 2.27.4, and 2.28.1 are at risk from CVE-2026-59259.

5

What causes CVE-2026-59259?

CVE-2026-59259 is caused by a mismatch between the static validation check and the runtime expression engine.

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