CVE-2026-54305: n8n: Cross-Tenant Credential Takeover via Dynamic Credentials EE Endpoints
Three Enterprise endpoints behind n8n's Dynamic Credentials feature accept any logged-in session and skip ownership checks. A user with no project access can list credentials used by private workflows, overwrite another user's OAuth tokens with their own, or revoke tokens. Fixed in n8n 1.123.55, 2.25.7 and 2.26.2.
Published Jun 16, 2026 · Updated Jul 20, 2026 · Analysis Oct 26, 2026
What an attacker can do
The three EE endpoints used by Dynamic Credentials check only that the caller has an n8n session. They do not check whether the caller belongs to the project, or has any sharing relationship with the target workflow or credential (CWE-284). The advisory does not name the paths.
Through them, any authenticated user can do three things. First, enumerate credential IDs, names and types referenced by any private workflow on the instance. Second, start an OAuth authorization flow against another user's credential and finish it with an account they control, which overwrites the stored tokens. Third, revoke another user's stored tokens, which breaks the workflows that use them.
The second case is the serious one. Workflows that depend on the hijacked credential then run under the attacker's OAuth identity, so their data goes to the attacker's account at the external service, and the takeover persists until someone notices. This is why CVSS 3.1 reaches 9.9 with changed scope.
Only Enterprise instances with the Dynamic Credentials feature enabled are affected. Multi-tenant or shared instances, where users should not see each other's integrations, are the main risk.
Who is affected
n8n Enterprise instances with Dynamic Credentials enabled, on npm versions below 1.123.55, from 2.0.0-rc.0 below 2.25.7, and from 2.26.0 below 2.26.2. The feature is switched on with the N8N_ENV_FEAT_DYNAMIC_CREDENTIALS environment variable. Check:
npm ls n8n
env | grep N8N_ENV_FEAT_DYNAMIC_CREDENTIALSIn Docker, inspect the container environment instead.
n8n
- Ecosystem
- npm
- Affected
- < 1.123.55
- Fixed in
- 1.123.55
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- >= 2.26.0, < 2.26.2
- Fixed in
- 2.26.2
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- >= 2.0.0-rc.0, < 2.25.7
- Fixed in
- 2.25.7
- Check
npm ls n8n
How to fix it
Upgrade to 1.123.55, 2.25.7 or 2.26.2, or later:
npm install -g n8n@latestFor Docker, pull a newer n8nio/n8n image. Temporary mitigations from the advisory, which do not fully remove the risk: restrict instance access to fully trusted users, and if you do not need Dynamic Credentials, unset N8N_ENV_FEAT_DYNAMIC_CREDENTIALS. If you suspect misuse, reconnect the OAuth credentials of important integrations so the stored tokens are known to be yours.
How to tell if you were hit
The advisory lists no indicators. Look in n8n and reverse proxy logs for calls to Dynamic Credentials endpoints from users who are not members of the related project. Check OAuth integrations for authorizations by accounts you do not recognize, in the audit log of the connected service. Look for credentials whose connected account changed unexpectedly, workflows that suddenly fail with authorization errors (a sign of revoked tokens), and data arriving in unfamiliar external accounts.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
Three EE endpoints used by the Dynamic Credentials feature accepted any authenticated n8n session without performing per-resource ownership or scope checks on the target workflow or credential. An authenticated user with no project membership or credential sharing relationship could enumerate credential identifiers, names, and types referenced by any private workflow in the instance, initiate an OAuth authorization flow against another user's credential to overwrite its stored tokens with tokens bound to an account they control, or revoke another user's stored credential tokens entirely.
Workflows relying on a hijacked credential would subsequently execute under the attacker's OAuth identity, enabling data exfiltration to attacker-controlled external services and persistent takeover of integrations. Token revocation would break affected workflows.
This issue only affects Enterprise instances where the Dynamic Credentials feature is enabled.
Patches
The issue has been fixed in n8n versions 1.123.55, 2.25.7, and 2.26.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.
- If the Dynamic Credentials feature is not actively required, disable it by unsetting
N8N_ENV_FEAT_DYNAMIC_CREDENTIALS.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
--- n8n has adopted CVSS 4.0 as primary score for all security advisories. CVSS 3.1 vector strings are provided for backwards compatibility.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
Credited to Solidscripting, Har1sh-k.
Questions
- Does CVE-2026-54305 affect n8n Community Edition?
The advisory says it affects only Enterprise instances where the Dynamic Credentials feature is enabled.
- Does the attacker need project access?
No. Any authenticated n8n user can reach the endpoints, with no project membership or credential sharing.
- Which versions fix it?
1.123.55, 2.25.7 and 2.26.2, or later releases.
- Is it exploited in the wild?
The sources do not report exploitation, and the entry has no CISA KEV data.
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
