CVE-2026-59254: n8n: External Secrets Accessible via Workflow Expressions Outside Credentials
n8n resolved external secrets inside workflow node expressions, where they should not be available. A user with project editor access could read a secret's plaintext by referencing it in an expression, with no secrets permission. Only instances with the external secrets feature configured are affected. Fixed in n8n 2.27.4 and 2.28.1.
Published Jul 22, 2026 · Analysis Oct 25, 2026
What an attacker can do
External secrets let n8n pull values from a secrets store such as a vault. They are meant to be used in credentials only. Because of this flaw they also resolved in ordinary node expressions (CWE-639, authorization bypass). A project editor writes an expression that references an external secret, runs or previews it, and sees the plaintext value. The editor needs no explicit secrets access permission.
The attacker needs an authenticated account with editor access to a project. No user interaction is needed. The instance must have the external secrets feature configured, otherwise there is nothing to read.
The CVSS 4.0 vector shows no confidentiality impact on n8n itself but high impact on subsequent systems. That fits: the leaked values are keys and passwords for other services, such as cloud accounts and databases. Anyone who can edit a project can in effect read every external secret the instance knows, so the permission model that separates editors from secret holders does not hold.
Who is affected
Affected: n8n below 2.27.4, and 2.28.0. The fixed releases are 2.27.4 on that line and 2.28.1. Only instances with the external secrets feature configured are exposed, and the risk is highest where editors are less trusted than secret administrators.
Check the version:
npm ls n8nFor Docker, check the image tag or the version in the UI.
n8n
- Ecosystem
- npm
- Affected
- >= 2.28.0, < 2.28.1
- Fixed in
- 2.28.1
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- < 2.27.4
- Fixed in
- 2.27.4
- Check
npm ls n8n
How to fix it
Upgrade to n8n 2.27.4 or 2.28.1, or later. For an npm install, run npm install [email protected].
Temporary mitigations from the advisory, neither of which fully removes the risk:
- Restrict project membership to fully trusted users.
- Do not grant editor access to projects on instances where external secrets are configured.
If untrusted editors had access on an unpatched version, rotate the external secrets they could have read.
How to tell if you were hit
Search workflows for node expressions that reference external secrets, where credentials should be the only consumer. Look at who last edited those workflows and whether they hold secrets permissions. Check the secrets provider's access logs for reads from the n8n instance that do not match credential use. Review whether any listed secret was later used from an unexpected address.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
External secrets were incorrectly resolved in workflow node expressions, where they are not intended to be available. An authenticated user with project editor access could read the plaintext value of external secrets by referencing them in a node expression, without needing explicit secrets access permissions.
This issue only affects instances with the external secrets feature configured.
Patches
The issue has been fixed in n8n versions 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 project membership to fully trusted users only.
- Avoid granting editor access to projects on instances where external secrets are configured.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Questions
- Who can read secrets through CVE-2026-59254?
A user with project editor access on an instance that has external secrets configured. They do not need secrets access permissions.
- Are instances without external secrets affected?
Not in a practical sense. The advisory says the issue only affects instances with the external secrets feature configured.
- Which versions are fixed?
n8n 2.27.4 and 2.28.1, or later releases.
- Should I rotate secrets after upgrading?
If editors you do not fully trust had access while you ran an affected version, rotating the external secrets is a sensible precaution. The advisory itself does not say this.
References
Read for this analysis:
- https://nvd.nist.gov/vuln/detail/CVE-2026-59254
- https://github.com/n8n-io/n8n/releases/tag/n8n%402.27.4
- https://github.com/n8n-io/n8n/releases/tag/n8n%402.28.1
- https://www.vulncheck.com/advisories/n8n-external-secrets-disclosure-via-workflow-node-expressions
- https://github.com/advisories/GHSA-2434-3x6q-8r99
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
