Skip to content
HighVulnerability

GHSA-8342-988q-86cr: n8n: Account Takeover via Unverified Email Claim in Token Exchange Embed Login

Published
Record updated
View JSON
Affected
  • n8n >= 2.32.0, < 2.32.1, fixed in 2.32.1, released July 22, 2026, on the day of disclosure
  • n8n < 2.31.5, fixed in 2.31.5, released July 22, 2026, on the day of disclosure

Summary

n8n's embed login feature, when a validly signed token's email claim matched a local account, did not check the trusted key's allowed role ceiling or whether the email claim was verified. Anyone able to obtain a token from a configured trusted key, such as an issuer that emits unverified emails, could log in as any existing user and gain full account control. The issue affects only instances with embed login enabled and at least one trusted key source configured.

Mitigation

Fixed in n8n version 2.32.1; upgrade to this version or later. If upgrading is not immediately possible, the source suggests temporary workarounds: set N8N_TOKEN_EXCHANGE_ENABLED=false to disable embed login, or if that is not possible, restrict network access to fully trusted parties and audit trusted keys and their allowedRoles assignments. Review auth_identity records for unexpected token-exchange entries linked to high-privilege accounts. The source states these workarounds do not fully remediate the risk and are short-term measures only.

Affected packages in the Exposure Registry

Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.

  • n8nnpmLLM dependency since 2026-02-11