CVE-2026-33722: n8n Has External Secrets Authorization Bypass in Credential Saving
n8n lets a user without the `externalSecret:list` permission read plaintext values from a connected external secrets vault. They reference a secret by its external name in a credential and read it back when saving. It requires a configured vault and a known or guessable secret name. Fixed in n8n 1.123.23 and 2.6.4.
Published Mar 25, 2026 · Analysis Oct 31, 2026
What an attacker can do
n8n can pull secrets from external vaults and use them in credentials. Listing those secrets needs the externalSecret:list permission. The credential-saving path did not apply that check (CWE-863). A user could type an external secret name into a credential field and, on save, get the plaintext value back.
The attacker needs an authenticated account on the instance. They also need to know or guess the secret's name, which is why the CVSS 3.1 vector rates attack complexity high. Secret names in vaults tend to follow conventions such as prod/db/password, so guessing is not hard. No admin or owner rights are needed.
What they get is anything in the connected vault that n8n can read: database passwords, API keys, cloud credentials. The scope is changed in the score because those secrets belong to other systems. Instances with no external secrets vault configured are not exposed.
Who is affected
The npm package n8n below 1.123.23, and from 2.0.0-rc.0 up to but not including 2.6.4. Only instances with an external secrets vault configured are affected. Check with:
npm ls n8nThen see in the n8n UI whether External Secrets is set up.
n8n
- Ecosystem
- npm
- Affected
- < 1.123.23
- Fixed in
- 1.123.23
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- >= 2.0.0-rc.0, < 2.6.4
- Fixed in
- 2.6.4
- Check
npm ls n8n
How to fix it
Upgrade to n8n 1.123.23 or 2.6.4, or later:
npm install -g [email protected]Temporary mitigations from the advisory, which do not fully remediate the risk: restrict n8n access to fully trusted users, and disable the external secrets integration until you can patch.
How to tell if you were hit
The advisory lists no indicators. Review credentials created or edited by users who lack the external secrets list permission, looking for fields that reference external secret names. Check vault audit logs for reads of secrets by the n8n service account that line up with those saves. Rotate vault secrets if you find any.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
An authenticated user without permission to list external secrets could reference a secret by the external name in a credential and retrieve its plaintext value when saving the credential. This bypassed the externalSecret:list permission check and allowed access to secrets stored in connected vaults without admin or owner privileges.
- This issue requires the instance to have an external secrets vault configured.
- The attacker must know or be able to guess the name of a target secret.
Patches
The issue has been fixed in n8n versions 1.123.23 and 2.6.4. 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 access to fully trusted users only.
- Disable external secrets integration until the patch can be applied.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Questions
- Do I need an external secrets vault for this to matter?
Yes. The advisory says the instance must have an external secrets vault configured.
- Must the attacker know the secret name?
They must know or be able to guess it. That is why attack complexity is rated high in the CVSS 3.1 vector.
- Which versions fix CVE-2026-33722?
n8n 1.123.23 on the 1.x line and 2.6.4 on the 2.x line.
References
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
