Skip to main content
VulnerabilityPublished

n8n: Account Takeover via Unverified Email Claim in Token Exchange Embed Login

Affects n8nSource GCVE Database

0

CVSS 8.9 High : upgrade to 2.32.1 soon.

Data as of 22 Jul 2026, 23:28 UTC

CVSS 4.0 base score
8.9High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2.32.1, 2.31.5
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

What to do

Upgrade n8n to 2.32.1; n8n to 2.31.5.

Affected software

ProductAffectedFixed in
npmn8nAffected
  • >=2.32.0 <2.32.1
Fixed in
  • 2.32.1
npmn8nAffected
  • <2.31.5
Fixed in
  • 2.31.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in n8n version 2.32.1; users should upgrade to this version or later to remediate the vulnerability. If immediate upgrade is not possible, administrators should disable the embed login feature by setting N8N_TOKEN_EXCHANGE_ENABLED=false. If disabling embed login is not feasible, restrict network access to trusted parties only, audit all configured trusted keys and their allowedRoles assignments, and review auth_identity records for unexpected token-exchange entries linked to high-privilege accounts. These workarounds are temporary and do not fully mitigate the risk.

Description

An account takeover vulnerability exists in n8n when the embed login feature is enabled and trusted key sources are configured. The service fails to verify that the email claim in a valid token is verified or that the token's permitted role ceiling covers the local account. This allows an attacker with a token accepted by a trusted key (e.g., from a trusted issuer emitting unverified emails) to authenticate as any user and gain full account control. The issue is fixed in n8n version 2.32.1. Temporary mitigations include disabling embed login or restricting network access and auditing trusted keys and token-exchange records.

References

Community reviews

Loading reviews…