CVE-2026-72772: n8n: account takeover via unverified SSO email claim
UNKNOWNn8n's Token Exchange Embed Login feature authenticates users by matching an incoming signed token's email claim to a local account, but fails to verify that the email was actually confirmed by the trusted issuer or that the issuer's permitted role ceiling covers that account. Any party able to obtain a token accepted by a configured trusted key — for example an identity provider that emits unverified email addresses — can impersonate any existing n8n user and gain full account control, including access to stored credentials and automations wired into that account's workflows. This only matters if embed login is enabled with at least one trusted key configured, which narrows exposure, and there is no public PoC, no Nuclei template, and no CISA KEV listing; EPSS sits at a low 0.00215, so opportunistic mass exploitation is unlikely right now. Because n8n workflows routinely hold LLM API keys and third-party integration secrets, a successful takeover of a privileged n8n account is a credential-exfiltration and automation-tampering risk, not just a login bypass. Patch to n8n 2.32.1 (or 2.31.5 on the older branch) immediately if embed login is enabled, and in the interim disable embed login or remove trusted key sources until patched, then audit account activity and workflow credential access logs for anomalies tied to embed-login sessions.
What is the risk?
This is a self-contained authentication-bypass flaw (CWE-640) with high potential impact — full account takeover — but a narrow precondition set: it only applies to n8n instances that have explicitly enabled embed login AND configured at least one trusted key/issuer. There is no CVSS score published, no CISA KEV listing, no known public exploit, and EPSS is very low, so exploitation likelihood in the wild is currently modest. However, exploitability itself is not technically hard — it requires obtaining or controlling a token from a trusted issuer that emits unverified email claims, which is plausible in federated/embed SSO setups using loosely configured IdPs. Given n8n's role as an AI agent orchestration platform frequently holding LLM API keys and third-party credentials inside workflows, a successful takeover has outsized downstream impact relative to its EPSS score. Overall: TRACK per CISA SSVC, but treat as urgent for any instance with embed login enabled.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| n8n | npm | — | No patch |
Do you use n8n? You're affected.
How severe is it?
What should I do?
1 step-
Patch immediately to n8n >= 2.32.1 (or >= 2.31.5 on the 2.31.x branch), which is expected to enforce email-verification status and role-ceiling checks on token exchange embed login. If patching cannot happen immediately, disable the embed login feature or remove/disable all configured trusted key sources until the upgrade is applied — the vulnerability requires both to be active. Audit trusted issuer configurations to confirm whether any configured IdP is known to emit unverified email claims, and tighten issuer trust policies accordingly. After patching, review authentication logs for embed-login sessions around unexpected accounts or IPs, and rotate credentials stored in workflows for any accounts that may have been accessed via this path during the exposure window.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-72772?
n8n's Token Exchange Embed Login feature authenticates users by matching an incoming signed token's email claim to a local account, but fails to verify that the email was actually confirmed by the trusted issuer or that the issuer's permitted role ceiling covers that account. Any party able to obtain a token accepted by a configured trusted key — for example an identity provider that emits unverified email addresses — can impersonate any existing n8n user and gain full account control, including access to stored credentials and automations wired into that account's workflows. This only matters if embed login is enabled with at least one trusted key configured, which narrows exposure, and there is no public PoC, no Nuclei template, and no CISA KEV listing; EPSS sits at a low 0.00215, so opportunistic mass exploitation is unlikely right now. Because n8n workflows routinely hold LLM API keys and third-party integration secrets, a successful takeover of a privileged n8n account is a credential-exfiltration and automation-tampering risk, not just a login bypass. Patch to n8n 2.32.1 (or 2.31.5 on the older branch) immediately if embed login is enabled, and in the interim disable embed login or remove trusted key sources until patched, then audit account activity and workflow credential access logs for anomalies tied to embed-login sessions.
Is CVE-2026-72772 actively exploited?
No confirmed active exploitation of CVE-2026-72772 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-72772?
Patch immediately to n8n >= 2.32.1 (or >= 2.31.5 on the 2.31.x branch), which is expected to enforce email-verification status and role-ceiling checks on token exchange embed login. If patching cannot happen immediately, disable the embed login feature or remove/disable all configured trusted key sources until the upgrade is applied — the vulnerability requires both to be active. Audit trusted issuer configurations to confirm whether any configured IdP is known to emit unverified email claims, and tighten issuer trust policies accordingly. After patching, review authentication logs for embed-login sessions around unexpected accounts or IPs, and rotate credentials stored in workflows for any accounts that may have been accessed via this path during the exposure window.
What systems are affected by CVE-2026-72772?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, workflow automation / orchestration.
What is the CVSS score for CVE-2026-72772?
No CVSS score has been assigned yet.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0012 Valid Accounts AML.T0083 Credentials from AI Agent Configuration AML.T0091.000 Application Access Token Compliance Controls Affected
What are the technical details?
Original Advisory
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.
Exploitation Scenario
An organization enables n8n's embed login to let a partner portal authenticate users via SSO, trusting an identity provider that, for certain federated/social sign-in paths, issues tokens with an `email` claim that is not cryptographically or organizationally verified. An attacker registers an account with that issuer using an email address matching a high-privilege n8n user (e.g. an admin who owns workflows containing LLM API keys and database credentials), obtains a validly signed token, and presents it to n8n's Token Exchange Embed Login endpoint. Because n8n only checks that the email claim matches an existing local account — without verifying the claim was confirmed or that the issuer's role ceiling permits access to that account — the attacker is authenticated as the victim admin with full account privileges. From there, the attacker can open the admin's workflows, extract stored LLM/API credentials, exfiltrate connected data, or modify automations to establish persistence.
Weaknesses (CWE)
CWE-640 Weak Password Recovery Mechanism for Forgotten Password
Primary
CWE-640 Weak Password Recovery Mechanism for Forgotten Password CWE-640 — Weak Password Recovery Mechanism for Forgotten Password: The product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak.
- [Architecture and Design] Make sure that all input supplied by the user to the password recovery mechanism is thoroughly filtered and validated.
- [Architecture and Design] Do not use standard weak security questions and use several security questions.
Source: MITRE CWE corpus.
References
Timeline
Related Vulnerabilities
CVE-2026-33663 10.0 n8n: member role steals plaintext HTTP credentials
Same package: n8n CVE-2026-33660 10.0 TensorFlow: type confusion NPD in tensor conversion
Same package: n8n CVE-2026-21858 10.0 n8n: Input Validation flaw enables exploitation
Same package: n8n CVE-2026-27494 9.9 n8n: security flaw enables exploitation
Same package: n8n CVE-2026-27495 9.9 n8n: Code Injection enables RCE
Same package: n8n