We spend a lot of our identity and access management work explaining to people that a claim is not a fact, it's a sentence someone else is willing to vouch for, and the email-matching account-linking flaw is what happens when that distinction gets skipped. The pattern is almost boringly common: an application lets a user sign in with a new identity provider, looks up an existing account by matching the address in the token, and links the two without checking whether that address was ever verified by the provider making the claim. It works fine in demos. It works fine for the first thousand logins. Then someone registers alice@company.com on an identity provider that lets anyone self-assert any address string, and now they own Alice's existing account, her data, and whatever privileges came with it.
The mechanism is specific enough to name, which we think matters more than another paragraph about trust boundaries in the abstract. OIDC tokens carry an email claim and, separately, an email_verified boolean; SAML assertions carry a NameID and attribute statements that may or may not have gone through the issuing IdP's own verification flow. An application that matches on that address without checking the verified flag, or without knowing whether the SAML attribute was asserted by a source it actually trusts, has quietly decided that "a string that looks like an address" and "a verified identity" are interchangeable. They are not, and the gap between them is exactly where this bug lives. Picture a team that supports both a corporate Okta tenant and a consumer-grade social login for contractors, both mapped into the same user table by that same identifier. Nothing forces the social provider's claim to carry the same verification guarantee as the corporate one, and nothing in a typical account-linking function asks it to.
Why account linking is the wrong place to improvise
Account linking tends to get built late, by whoever is finishing the SSO ticket, as a small utility function buried under the actual authentication logic everyone reviewed carefully. That's the real failure mode, not cryptography and not an exotic misconfiguration: the hard part of federation gets scrutiny, and the easy-looking part — "if the addresses match, it's the same person" — gets none, because it reads as obviously correct. It is obviously correct only if every identity provider you accept enforces ownership of that identifier the same way, and your code actually checks for that enforcement rather than assuming it. Multiply that by however many identity providers a mid-sized org accumulates over a few years of acquisitions and contractor onboarding, and the assumption stops holding long before anyone revisits the function that depends on it.
We'd also point out this isn't a problem that stays confined to human logins. Our own view across the firm — stated plainly on our PAM work as well — is that building software and controlling access to it are the same discipline, because the thing authenticating in may be a person, a service account, or increasingly an agent acting on someone's behalf. An AI agent granted a token with a self-asserted or loosely verified claim is subject to exactly the same account-linking logic, and arguably less likely to get a human's instinctive second look before it's granted the keys to an existing account. The fix doesn't need new cryptography. It needs the account-linking step to check the thing it's actually supposed to be checking: whether the identity provider in question verified ownership of that identifier before asserting it, and if it can't tell you that, to treat the match as a hint for a human reviewer rather than a decision.
None of this requires distrusting your identity providers wholesale. It requires not asking a single address field to do a job it was never guaranteed to do. A credential proves what its issuer is willing to stand behind, and an application that links accounts on anything less than that guarantee has outsourced its security model to whichever identity provider has the loosest verification policy in its trust list — which is a strange thing to discover only after someone's already signed in as somebody else.