n8n workflow API allows authenticated users to bypass authentication and expose all accounts
What this means
An authenticated user can craft a malicious workflow that corrupts the application's internal settings and tricks n8n into treating unauthenticated requests as if they came from an administrator. An attacker can then read the email addresses, roles, and security settings of every user, see all projects, and crash parts of the service until restart.
SecurityElites Manager Brief: the decision in one minute
A user with permission to create workflows can trick n8n into treating any visitor as an administrator, exposing private data for all accounts and projects. You must upgrade to close this hole immediately, and check whether anyone has already exploited it.
| SecurityElites Fix-First Score | 43 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 30 days High severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform engineering or DevOps team (whoever deploys and operates n8n). |
| Likely effort | About 15 to 30 minutes per instance: download and deploy the fixed version, then restart. Checking logs for signs of exploitation may take another hour. This estimate assumes your deployment process is straightforward; custom configurations or many instances w |
Questions to ask your team or supplier
- Do we know which users created or updated workflows between [the date this vulnerability was discovered] and [today]? Can we contact them to check whether the workflows they created were legitimate?
Message you can forward to the owning team
Security notice: n8n workflow API allows authenticated users to bypass authentication and expose all accounts (CVE-2026-59206)
Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to n8n 2.28.1 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-59206-n8n-workflow-api-allows-authenticated-users-to-bypass-authentication/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01739What is at stake in your AI setup
- Keys and credentials stored in n8n workflows for external AI services (OpenAI, Anthropic, etc.) could be read and used by an attacker without paying for them.
- Prompts and instructions you built into workflows that use AI models could be exfiltrated and copied.
- Chat history or logs of interactions with AI tools connected to n8n could expose sensitive business or personal conversations.
- Connected systems and APIs that workflows can reach (including data sources, file storage, and internal tools) could be accessed or modified by an attacker posing as an administrator.
Who is exposed
- Any n8n instance running version 1.123.60 or earlier, or version 2.0.0-rc.0 through 2.27.3, or version 2.28.0.
- Teams with users who have workflow creation permission (the default for most roles).
- Instances accessible over a network or the internet.
- Instances where you cannot immediately restrict who can create workflows.
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| n8n npm | Every version before 1.123.61; 2.28.0 up to, but not including, 2.28.1; 2.0.0-rc.0 up to, but not including, 2.27.4 | 2.28.1 or later |
Each maintained branch has its own fixed version. Stay on your branch if you cannot jump to the newest: n8n 1.123.61, 2.27.4, 2.28.1.
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | No known attacks and no public attack code when CISA last reviewed it |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | An ordinary user account |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | Limited |
| Risk of: the service being taken down | None |
| Can attackers automate it at scale | No, according to CISA. Each target needs manual work |
| How much control an attacker gains | Partial control, according to CISA |
Read from the official severity rating: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N
Kind of coding mistake
- CWE-1321: object prototypes can be polluted
If you cannot upgrade today
- Until you can upgrade, restrict the workflow creation and editing permission to only your most trusted users. Remove it from other roles if possible.
- If possible, restrict network access to the n8n instance to only your internal network or a whitelist of trusted IP addresses, so unauthenticated attackers cannot reach it.
- These measures reduce the risk but do not eliminate it; they must only be used while you prepare to upgrade.
Signs it may already have been used against you
- In n8n audit logs or database, look for workflows created or updated by users who do not normally create workflows, or updates that happened outside business hours.
- Look for API requests in your reverse proxy or firewall logs from unauthenticated sources that received successful responses (HTTP 200) around the time of a workflow create or update.
- Check for error messages or crashes in the n8n service logs that mention prototype pollution, Object.prototype, or corrupted state, especially around the time a suspicious workflow was imported or saved.
- Look in your authentication logs for a sudden spike in requests from accounts that should be inactive or non-existent, or failed login attempts that suddenly started succeeding.
Log searches to start from
Find workflow create or update API callsSplunk
source=n8n_logs (request_path=*/workflows OR request_path=*/import) method=POST OR method=PUT | stats count by user, timestamp, workflow_idFind successful API responses from unauthenticated requestsElastic
source: n8n AND (http.status_code: 200 OR http.status_code: 201) AND (user: null OR user: undefined OR authentication: missing)Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.
SecurityElites Fix Guide: step by step
- Find your n8n versionLog in to n8n as an administrator. Go to Settings > About or check the footer of the page for the version number. Write it down.
- Check if your version is affectedIf your version is 1.123.60 or earlier, or 2.0.0-rc.0 through 2.27.3, or 2.28.0, you are affected. Any other version (including 1.123.61, 2.27.4, 2.28.1, or later) is safe.
- Back up your n8n dataExport or snapshot your n8n database and any configuration files. This protects you if the upgrade fails and you need to roll back.
- Upgrade n8n to the fixed versionIf you are on version 1.x, upgrade to 1.123.61 or later. If you are on version 2.0.0-rc.0 through 2.27.3, upgrade to 2.27.4 or later. If you are on version 2.28.0, upgrade to 2.28.1 or later. Follow your deployment method (npm, Docker, managed service, or other).
- Restart n8nAfter the upgrade, restart the n8n service or container. Wait for it to become fully ready before proceeding.
- Verify the fix is in placeLog in to n8n and check Settings > About again. Confirm the version number now shows 1.123.61, 2.27.4, 2.28.1, or later.
- Search for signs of past exploitationCheck your n8n logs and audit trail for unusual activity before the upgrade. Look for workflows created or updated by users you do not recognize, or strange API requests from users who are not supposed to access the instance.
- If you find signs of past exploitationImmediately change all user passwords, especially for administrator and service accounts. Review the user list and projects to see if anything was deleted, modified, or exfiltrated. Check external systems that n8n can connect to (databases, APIs, file storage) for unauthorized access in the same time window.
How to confirm it is fixed: Log in to n8n as an administrator, go to Settings > About, and confirm the version is 1.123.61, 2.27.4, 2.28.1, or any higher version.
SecurityElites Quick Fixes: copy and paste
Upgrade n8n with npmupgrade
npm install n8n@2.28.1
npm ls n8nCheck the installed n8n version using npmfor this issue
npm list n8n 2>/dev/null | grep n8n | head -1Require sign-in with nginx in front of the servicegeneral hardening
location / {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
proxy_pass http://127.0.0.1:8080;
}Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2026-59206) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - n8n (npm): must be 2.28.1 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## n8n workflow API allows authenticated users to bypass authentication and expose all accounts (CVE-2026-59206)
**Severity:** High | **SE Fix-First Score:** 43/100 | **Fix window:** Within 30 days
**Record:** SE-AIV-01739 https://securityelites.com/ai-vulnerabilities/cve-2026-59206-n8n-workflow-api-allows-authenticated-users-to-bypass-authentication/
### Why this matters
An authenticated user can craft a malicious workflow that corrupts the application's internal settings and tricks n8n into treating unauthenticated requests as if they came from an administrator. An attacker can then read the email addresses, roles, and security settings of every user, see all projects, and crash parts of the service until restart.
### What to do
1. Find your n8n version
2. Check if your version is affected
3. Back up your n8n data
4. Upgrade n8n to the fixed version
5. Restart n8n
6. Verify the fix is in place
7. Search for signs of past exploitation
8. If you find signs of past exploitation
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-59206-n8n-workflow-api-allows-authenticated-users-to-bypass-authentication/
### Done when
- [ ] n8n is at 2.28.1 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Log in to n8n as an administrator, go to Settings > About, and confirm the version is 1.123.61, 2.27.4, 2.28.1, or any higher version.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- n8n legacy expression engine allows code execution via JSON.stringify override High · CVE-2026-86083
- n8n OpenAI node bypasses domain restrictions on model search High · CVE-2026-86082
- n8n Git node can freeze the instance with a crafted path High · CVE-2026-86081
- n8n OAuth registration accepts unlimited field sizes, filling the database High · CVE-2026-86075
- n8n expression compiler can run arbitrary code through class field names High · CVE-2026-86076
- n8n Edit Fields node can crash the whole instance with a bad field name High · CVE-2026-72749
The same kind of mistake in other AI tools
- Langflow OSS allows authenticated users to access or change other users' flows High · CVE-2026-127067
- BaaRai ARTEX admin account can be claimed without authentication on first setup Critical · CVE-2026-140422
- BaaRai ARTEX admin login can be guessed without limits or lockouts Critical · CVE-2026-140365
- NLTK dependency parser crashes on long sentences High · CVE-2026-129222
- NLTK regex patterns can be made to freeze the server High · CVE-2026-129229
Change history
- 22 Jul 2026: Made public
- 2 Dec 2026: Published
Official record
## 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.
Weakness type: CWE-1321
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-59206For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.