CVE-2026-59206: n8n: Prototype Pollution via Workflow Credentials Leads to Unauthenticated User and Project Enumeration
n8n has a prototype pollution flaw in workflow credential handling. A user with the default `workflow:create` permission can save, update or import a crafted workflow that pollutes `Object.prototype`. That can make unauthenticated requests pass as a privileged user and expose the user and project listings. Fixed in n8n 1.123.61, 2.27.4 and 2.28.1.
Published Jul 22, 2026 · Analysis Oct 25, 2026
What an attacker can do
The workflow API accepts a crafted workflow, whether saved, updated or imported, and merges attacker-chosen keys into Object.prototype. Once the prototype is polluted, the instance's authentication logic reads attacker-influenced defaults. Requests with no login are then treated as a privileged user.
The attacker first needs an account that can create workflows, which is the default for members. After the pollution, anyone who can reach the instance, with no credentials, can call endpoints such as the user and project listings. The advisory says this discloses every account's email, role and MFA status, and every project on the instance. That is a ready target list for phishing and for finding admin accounts.
The pollution also corrupts global state, so parts of the instance can stop responding until n8n restarts. The vector scores high confidentiality, low integrity and no availability impact, but the advisory names the unresponsiveness.
Because the pollution lives in process memory, it affects all users of the instance, not just the attacker's own workflows.
Who is affected
The n8n npm package in three ranges: before 1.123.61, from 2.0.0-rc.0 before 2.27.4, and 2.28.0 before 2.28.1. Self-hosted instances where users other than fully trusted ones can create workflows are most at risk.
npm ls n8nFor Docker, check the image tag, or read the version in the n8n UI under Settings > About.
n8n
- Ecosystem
- npm
- Affected
- < 1.123.61
- Fixed in
- 1.123.61
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- >= 2.28.0, < 2.28.1
- Fixed in
- 2.28.1
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- >= 2.0.0-rc.0, < 2.27.4
- Fixed in
- 2.27.4
- Check
npm ls n8n
How to fix it
Upgrade to n8n 1.123.61, 2.27.4 or 2.28.1, or later, matching your release line.
npm install [email protected]The advisory gives two temporary mitigations, and says they do not fully remove the risk:
- Restrict workflow creation and editing to fully trusted users.
- Restrict network access to the instance to trusted users.
If you suspect pollution happened, restart the instance to clear the corrupted process state.
How to tell if you were hit
Review workflows that were created, updated or imported recently by non-admin users, and look for credential or settings objects holding keys like __proto__, constructor or prototype. Check access logs for unauthenticated requests to the user or project listing endpoints that return HTTP 200. An instance that becomes unresponsive until restart is another sign.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
An authenticated user with the default workflow:create permission could pollute Object.prototype through a crafted workflow saved, updated, or imported via the workflow API. This can be leveraged to bypass authentication, allowing unauthenticated requests to be treated as a privileged user and exposing endpoints such as the user and project listings. As a result, every account's personal data (email, role, MFA status) and all projects on the instance may be disclosed to unauthenticated callers. The pollution can also corrupt global state, making parts of the instance unresponsive until restarted.
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 workflow creation and editing permissions to fully trusted users only.
- Restrict network access to the n8n instance to trusted users only.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Credited to assakafpix.
Questions
- Does CVE-2026-59206 need a login?
To plant it, yes: a user with
workflow:create, a default permission. After the pollution, the advisory says unauthenticated callers can read the user and project listings.- What data is exposed?
Each account's email, role and MFA status, plus all projects on the instance.
- Which n8n versions fix it?
1.123.61, 2.27.4 and 2.28.1. Use the one on your release line, or any later version.
- Is there a workaround?
Only partial ones. Limit workflow editing to trusted users and restrict network access. The advisory says these do not fully remediate the risk.
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
