GHSA-8342-988q-86crHigh▾ Twilightn8n: Account Takeover via Unverified Email Claim in Token Exchange Embed Login
▾ Twilight zone — High severity, or a signal on a lesser flaw
impact 41.3 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
In 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.
The issue has been fixed in n8n version 2.32.1. Users should upgrade to this version or later to remediate the vulnerability.
If upgrading is not immediately possible, administrators should consider the following temporary mitigations:
N8N_TOKEN_EXCHANGE_ENABLED=false.allowedRoles assignments.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.
n8n >= 2.32.0, < 2.32.1n8n < 2.31.5Upgrade to a patched release:
n8n 2.32.1n8n 2.31.5Connected by shared product, vendor, weakness, or advisory.
GHSA-6qc9-mqvw-jg7xHighn8n: Credential Authorization Bypass via Expression in HTTP Request Node `genericAuthType`
GHSA-cj9h-qx8g-pq2gHighn8n: Shared-Workflow Editor Can Exfiltrate Credentials via Inline Sub-Workflow JSON
GHSA-64xh-79j6-r5v8Highn8n: Bypass "Allowed HTTP Request Domains" Credential Restriction in Multiple AI and LLM Nodes
GHSA-gf29-4f56-r2jfHighn8n: Git Node fetch/pull/pushTags Operations Bypass Sandbox Path Restriction
GHSA-vhf8-cg2h-cg3pMediumn8n: SSRF Protection Bypass via MCP Client Node
GHSA-rcv6-pvrj-4xcgHighn8n: Authenticated code execution in the n8n Git node