Am I affected by n8n: Account Takeover via Unverified Email Claim in Token Exchange Embed Login? What should I do?
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.
Affected: n8n >= 2.32.0, < 2.32.1 and n8n < 2.31.5. Fixed in: 2.31.5. What should you check, and what should you do about it?
Full incident page with sources: https://agentarmorhq.com/incidents/2026/07/ghsa-8342-988q-86cr-n8n (opens external site)
1 answer
Am I affected? Affected: n8n >= 2.32.0, < 2.32.1 and n8n < 2.31.5. Fixed in: 2.31.5.
- Check your version: run
npm ls n8n. Versions >= 2.32.0, < 2.32.1 of n8n are affected.
What to do now
- Upgrade to the fixed version: run
npm install n8n@2.32.1(first patched version 2.32.1). - Disable the embed login feature by setting
N8N_TOKEN_EXCHANGE_ENABLED=false. - Restrict network access to the n8n instance to fully trusted parties only, and audit all configured trusted keys and their
allowedRolesassignments. - Review
auth_identityrecords for unexpectedtoken-exchangeentries linked to high-privilege accounts.
General practice, not from the source: if the affected software could read tokens or credentials, rotate them after upgrading; pin versions and review changes before updating tools your agents run.
Sources
- GitHub Advisory Database: https://github.com/advisories/GHSA-8342-988q-86cr (opens external site)
Full incident page: https://agentarmorhq.com/incidents/2026/07/ghsa-8342-988q-86cr-n8n (opens external site)
Did this work for you?- Check your version: run