CVE-2026-54307: n8n: Credential Exfiltration via Permission Bypass
In n8n, a member-level user who has Editor access to a shared workflow can use certain public API endpoints to attach credentials they do not own, because ownership checks were only partly enforced. This gives cross-user access to other people's credentials. Fixed in n8n 1.123.55, 2.25.7 and 2.26.2.
Published Jun 16, 2026 · Updated Jul 8, 2026 · Analysis Oct 26, 2026
What an attacker can do
n8n workflows reference stored credentials, such as API keys and OAuth tokens, by ID. The advisory says that on specific public API endpoints the check that the caller owns or may use a referenced credential was enforced only partially (CWE-863). It does not name the endpoints.
The precondition is workflow sharing: at least one workflow must be shared with a member-level user as an Editor. That user can then reference a credential belonging to someone else in the workflow through the public API. Once a workflow runs with that credential, the editor can use the owner's access to an external service, for example to read mail, query a database or call a cloud API, and can route the data to a destination they control. The CVSS 3.1 vector rates confidentiality and integrity high with changed scope (9.6), reflecting access to third-party systems beyond n8n.
The attacker needs a valid account with API access and an Editor share. They need no user interaction. Teams that share workflows widely, give members API keys, or store high-value credentials such as production cloud keys in the same instance are the most exposed.
Who is affected
n8n on npm in these ranges: below 1.123.55; from 2.0.0-rc.0 below 2.25.7; and from 2.26.0 below 2.26.2. Only instances with workflow sharing enabled and at least one workflow shared with a member as Editor are exposed. Check:
npm ls n8n
n8n --versionDocker and cloud installs show the version in the n8n UI.
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 workflow sharing to fully trusted users, and audit shared workflows for unexpected credential references or recent modifications. If you find a credential used by a workflow whose owner did not add it, rotate that credential.
How to tell if you were hit
Audit every workflow shared with a member-level Editor. For each credential node, confirm that the referenced credential belongs to the workflow owner or is shared with that editor. Look at recent modification times and who made the edits. In n8n and reverse proxy logs, look at public API calls that update workflows from member accounts. On the external service side, review the audit log of each credential for use from unexpected workflows or IP addresses.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
A member-level user with editor access to a shared workflow could reference credentials they do not own via specific public API endpoints. Credential ownership checks were only enforced partially leading to cross-user credential access.
This issue affects instances where workflow sharing is enabled and at least one workflow has been shared with a member-level user as an Editor.
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 workflow sharing to fully trusted users only.
- Audit shared workflows for unexpected credential references or recent modifications.
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:N
Credited to momenashrafff.
Questions
- Who can exploit CVE-2026-54307?
A member-level user with Editor access to a shared workflow, using specific public API endpoints. Instances with no shared workflows are not exposed.
- What is exposed?
Credentials owned by other users. The editor can reference them in a workflow and use them against the connected service.
- 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
