n8n embed login does not check user role or email verification

HighSE Fix-First Score 43/100CVE-2026-72772SE-AIV-01744Missing or broken access controlAI softwareMade public 23 Jul 2026

Download as PDF

What this means

An attacker with a valid token from a trusted key source can log in as any existing user on the n8n instance, including administrators. This gives full control of workflows, credentials, and data. Attackers can steal or modify workflows, access stored secrets, or disable audit controls.

SecurityElites Manager Brief: the decision in one minute

n8n's embed login feature allows any attacker with a trusted token to log in as any user. Upgrade to version 2.32.1 or later immediately, or disable embed login by setting `N8N_TOKEN_EXCHANGE_ENABLED=false` until you can upgrade.

SecurityElites Fix-First Score43 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform or infrastructure team that manages n8n instances.
Likely effortAbout 30 minutes: check if embed login is enabled, upgrade to version 2.32.1 or later, restart the service, and verify the version. Longer if you need to audit trusted keys or review recent logins first.

Questions to ask your team or supplier

  • Is embed login enabled in any of our n8n instances, and if so, which trusted keys are configured and what email verification does each issuer perform?
  • Have we checked the `auth_identity` table for any `token-exchange` logins that do not match our expected users or patterns, especially in the last 30 days?
  • What is our plan to upgrade to n8n 2.32.1 or later, and do we need to audit or rotate any credentials that may have been exposed?

Message you can forward to the owning team

Security notice: n8n embed login does not check user role or email verification (CVE-2026-72772)

Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to n8n 2.32.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-72772-n8n-embed-login-does-not-check-user-role-or/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01744

What is at stake in your AI setup

  • Keys for external AI providers: stolen credentials could be used to make API calls and run up costs
  • Stored prompts and system instructions: attackers can extract prompts used in workflows or modify them to change model behavior
  • Workflow definitions and connected tools: attackers can inspect which systems are connected and exfiltrate data or trigger actions
  • Training and retrieval data: if workflows ingest or reference training data, attackers can access or poison that data

Map where your company uses AI

Who is exposed

  • n8n instances with embed login enabled and at least one trusted key configured
  • Instances where the trusted key issuer does not verify email addresses before minting tokens
  • Any environment where high-privilege accounts exist in the same n8n instance

Upgrades you need

SoftwareAffected versionsMove to
n8n
npm
2.32.0 up to, but not including, 2.32.1; Every version before 2.31.52.32.1 or later

Each maintained branch has its own fixed version. Stay on your branch if you cannot jump to the newest: n8n 2.31.5, 2.32.1.

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Is it being attackedNo known attacks and no public attack code when CISA last reviewed it
Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededAn ordinary user account
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedHigh
Risk of: the service being taken downHigh
Can attackers automate it at scaleNo, according to CISA. Each target needs manual work
How much control an attacker gainsTotal control of the affected software, according to CISA

Read from the official severity rating: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:L

Kind of coding mistake

  • CWE-345
  • CWE-863: a permission check is wrong

If you cannot upgrade today

  • Set the environment variable `N8N_TOKEN_EXCHANGE_ENABLED=false` to disable embed login entirely until you can upgrade.
  • If embed login must remain on, restrict network access to the n8n instance to a whitelist of fully trusted IP addresses or networks.
  • Audit and document all configured trusted keys and their `allowedRoles` values. Remove any trusted key that does not verify email addresses before minting tokens.

Signs it may already have been used against you

  • Search logs for `token-exchange` or `token_exchange` authentication events, especially for administrative or high-privilege user accounts
  • Check the `auth_identity` database table for entries with `token-exchange` as the auth method and compare the email addresses to expected users
  • Look for logins from unexpected IP addresses or times in the audit log, especially for admin accounts
  • Review the audit log for creation, deletion, or modification of workflows or variables by accounts that do not normally make changes

Log searches to start from

Find token-exchange authentication attemptsElastic

source:n8n auth_method:token_exchange | stats count by user_email, timestamp

Find unexpected token-exchange logins for high-privilege accountsSplunk

source=n8n auth_method=token-exchange role=admin OR role=owner | table timestamp, user_email, source_ip, auth_method

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

  1. Check if embed login is enabledLog in to the n8n instance as an administrator. Go to Settings and look for the embed login or token exchange configuration. Note whether it is turned on and which trusted keys are configured.
  2. List all trusted keys and their role ceilingsFrom the Settings page or by reviewing environment variables and configuration files, record each configured trusted key and its `allowedRoles` setting. This tells you which roles the token is supposed to allow. If any trusted key has no role ceiling set, that is a sign the instance is at high risk.
  3. Upgrade n8n to the fixed versionUpdate the n8n package to version 2.32.1 or later. If you are on version 2.31.x, upgrade to 2.31.5 or later. If you are on version 2.32.0, upgrade to 2.32.1. Use your package manager (npm, container image, or deployment tool) to perform the upgrade.
  4. Restart the n8n serviceAfter the upgrade is complete, restart the n8n service or container to load the fixed code.
  5. Verify the upgrade was successfulLog in to the n8n instance and go to Settings or check the version number via the API or administration console. Confirm that the version is now 2.31.5, 2.32.1, or later.
  6. Audit recent logins for suspicious activityReview the `auth_identity` records in the n8n database or logs for any `token-exchange` entries that do not match expected usage. Pay special attention to logins for high-privilege accounts in the days or weeks before the upgrade.
  7. Review and restrict trusted keysFor each trusted key still in use, confirm that its `allowedRoles` is set to the minimum necessary privilege level. If any trusted key issuer cannot verify email addresses, consider removing it or restricting network access to the n8n instance to fully trusted parties only.
  8. Rotate credentials and audit workflowsIf you found suspicious logins, rotate all stored credentials in n8n, review recent changes to workflows and variables, and check whether any high-privilege accounts were accessed. Consider reviewing audit logs for any deletions or disabling of audit features.

How to confirm it is fixed: Log in to the n8n instance and confirm the version number is 2.32.1 or later (or 2.31.5 or later if on the 2.31.x branch) by checking Settings or the administration console.

SecurityElites Quick Fixes: copy and paste

Upgrade n8n with npmupgrade

npm install n8n@2.32.1
npm ls n8n

Check n8n version via npmfor this issue

npm list n8n

Check environment variable for embed login statusfor this issue

echo $N8N_TOKEN_EXCHANGE_ENABLED

Disable embed login as temporary mitigationfor this issue

export N8N_TOKEN_EXCHANGE_ENABLED=false

Require 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-72772) 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.32.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.

What is the minimum version of n8n that fixes this vulnerability?A good answer: Version 2.32.1 or later, or version 2.31.5 or later if you are on the 2.31.x branch.
What two things did n8n fail to check when a trusted token was presented with an email claim?A good answer: It did not check that the trusted key's allowed role ceiling covered the account being logged into, and it did not verify that the email claim itself was confirmed by the token issuer.
What is the temporary workaround if we cannot upgrade immediately?A good answer: Set the environment variable `N8N_TOKEN_EXCHANGE_ENABLED=false` to disable embed login, and restrict network access to the n8n instance to trusted parties only.
What type of database or log entry should we audit to detect if this flaw was exploited before the fix?A good answer: Look for `auth_identity` records or authentication logs with `token-exchange` as the method, especially for high-privilege accounts, and compare the email addresses to expected users.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## n8n embed login does not check user role or email verification (CVE-2026-72772)

**Severity:** High  |  **SE Fix-First Score:** 43/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-01744 https://securityelites.com/ai-vulnerabilities/cve-2026-72772-n8n-embed-login-does-not-check-user-role-or/

### Why this matters
An attacker with a valid token from a trusted key source can log in as any existing user on the n8n instance, including administrators. This gives full control of workflows, credentials, and data. Attackers can steal or modify workflows, access stored secrets, or disable audit controls.

### What to do
1. Check if embed login is enabled
2. List all trusted keys and their role ceilings
3. Upgrade n8n to the fixed version
4. Restart the n8n service
5. Verify the upgrade was successful
6. Audit recent logins for suspicious activity
7. Review and restrict trusted keys
8. Rotate credentials and audit workflows

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-72772-n8n-embed-login-does-not-check-user-role-or/

### Done when
- [ ] n8n is at 2.32.1 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Log in to the n8n instance and confirm the version number is 2.32.1 or later (or 2.31.5 or later if on the 2.31.x branch) by checking Settings or the administration console.
- [ ] 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.

Sign in to track this fix

Change history

  • 22 Jul 2026: Made public
  • 2 Dec 2026: Published

Official record

## ImpactIn an n8n instance, when a validly-signed incoming token was matched to a local account by its email claim, the service did not check that the trusted key's permitted role ceiling covered that account, nor that the email claim was verified. As a result, anyone able to obtain a token accepted by one of the configured trusted keys, for example a trusted issuer that emitted unverified email addresses, could authenticate as any existing user, gaining full account control.This issue only affects instances where the embed login feature is enabled and at least one trusted key source is configured.## PatchesThe issue has been fixed in n8n version 2.32.1. Users should upgrade to this version or later to remediate the vulnerability.## WorkaroundsIf upgrading is not immediately possible, administrators should consider the following temporary mitigations: - Disable the embed login feature by setting `N8N_TOKEN_EXCHANGE_ENABLED=false`. - If embed login cannot be disabled, restrict network access to the n8n instance to fully trusted parties only, and audit all configured trusted keys and their `allowedRoles` assignments. - Review `auth_identity` records for unexpected `token-exchange` entries linked to high-privilege accounts.These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Weakness type: CWE-345, CWE-863

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-72772

For 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.