{"id":"CVE-2026-72772","aliases":["CVE-2026-72772","GHSA-8342-988q-86cr"],"related":[],"kind":"vulnerability","state":"published","title":"n8n before 2.32.1 Authentication Bypass via Token Exchange","summary":"n8n before 2.32.1 (and before 2.31.5) is vulnerable to account takeover via the Token Exchange Embed Login feature. When a validly-signed incoming token was matched to a local account by its email claim, the service did not verify that the email claim was verified, nor that the trusted key's permitted role ceiling covered that account. As a result, anyone able to obtain a token accepted by a configured trusted key (for example, a trusted issuer emitting unverified email addresses) could authenticate as any existing user and gain full account control. This issue only affects instances where the embed login feature is enabled and at least one trusted key source is configured.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"n8n before 2.32.1 (and before 2.31.5) is vulnerable to account takeover via the Token Exchange Embed Login feature. When a validly-signed incoming token was matched to a local account by its email claim, the service did not verify that the email claim was verified, nor that the trusted key's permitted role ceiling covered that account. As a result, anyone able to obtain a token accepted by a configured trusted key (for example, a trusted issuer emitting unverified email addresses) could authenticate as any existing user and gain full account control. This issue only affects instances where the embed login feature is enabled and at least one trusted key source is configured.","source":"cvelist"},{"lang":"en","text":"## Impact\n\nIn 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.\n\nThis issue only affects instances where the embed login feature is enabled and at least one trusted key source is configured.\n\n## Patches\n\nThe issue has been fixed in n8n version 2.32.1. Users should upgrade to this version or later to remediate the vulnerability.\n\n## Workarounds\n\nIf upgrading is not immediately possible, administrators should consider the following temporary mitigations:\n- Disable the embed login feature by setting `N8N_TOKEN_EXCHANGE_ENABLED=false`.\n- 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.\n- Review `auth_identity` records for unexpected `token-exchange` entries linked to high-privilege accounts.\n\nThese workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.","format":"markdown","source":"ghsa"},{"lang":"es","text":"n8n anterior a 2.32.1 (y anterior a 2.31.5) es vulnerable a la toma de control de cuenta a través de la función de inicio de sesión incrustado de intercambio de tokens. Cuando un token entrante válidamente firmado se emparejaba con una cuenta local por su declaración de correo electrónico, el servicio no verificaba que la declaración de correo electrónico estuviera verificada, ni que el techo de rol permitido de la clave de confianza cubriera esa cuenta. Como resultado, cualquiera que pudiera obtener un token aceptado por una clave de confianza configurada (por ejemplo, un emisor de confianza que emitiera direcciones de correo electrónico no verificadas) podría autenticarse como cualquier usuario existente y obtener control total de la cuenta. Este problema solo afecta a las instancias donde la función de inicio de sesión incrustado está habilitada y al menos una fuente de clave de confianza está configurada.","source":"nvd"}],"published":"2026-07-22T22:04:54.000Z","modified":"2026-10-29T21:17:31.453Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.9,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.9,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-345","CWE-640","CWE-863"],"affected":[{"ranges":[{"type":"semver","introduced":"2.32.0","fixed":"2.32.1","status":"affected"},{"type":"semver","version":"2.32.1","status":"unaffected"}],"vendor":"n8n-io","product":"n8n","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"2.31.5","status":"affected"},{"type":"semver","version":"2.31.5","status":"unaffected"}],"vendor":"n8n-io","product":"n8n","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.32.0","status":"affected","fixed":"2.32.1"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.31.5"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.31.5"},{"status":"affected","version":"2.32.0"}],"vendor":"n8n","product":"n8n","cpe":"cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-8342-988q-86cr","tags":["mitigation","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/n8n-before-authentication-bypass-via-token-exchange","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/n8n-io/n8n/commit/f69dfc6dd2178a14ea1624d2e1d403c2e755042f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n@2.31.5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n@2.32.1","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-08-11T14:57:25.769Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-72772","url":"https://www.cve.org/CVERecord?id=CVE-2026-72772","licence":"CVE Terms of Use","modified":"2026-10-29T21:16:45.174Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8342-988q-86cr","url":"https://github.com/advisories/GHSA-8342-988q-86cr","licence":"CC-BY-4.0","modified":"2026-08-12T04:26:13.268Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-72772","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72772","licence":"Public domain","modified":"2026-10-29T21:17:31.453Z"}],"updatedAt":"2026-11-25T22:59:32.246Z","epss":{"score":0.00447,"percentile":0.30746,"date":"2026-11-30T12:00:22.000Z"}}