magikarp@home:~$

The reset link is a login, too: Drupal's December SSO advisories

Hi there,

you connected your website to the company identity provider. MFA lives there, conditional access lives there, offboarding lives there. Job done? On December 2, 2026, the Drupal Security Team published a batch of contrib advisories, and several of them say the same uncomfortable thing: a password reset link is a login method, and it doesn’t care where you think your users log in.

What was published?

Three different SSO modules had the same weakness. Here is what the advisories say:

  • SA-CONTRIB-2026-366, OpenID Connect Client (oidc), CVE-2026-142420, Moderately critical: the module “doesn’t sufficiently restrict access to generate a password reset link”. As a result, users “may be able to reset their passwords and log in without using the authentication provider”. Fixed in 2.3.3.
  • SA-CONTRIB-2026-345, OpenID Connect / OAuth client (openid_connect), CVE-2026-142399, Moderately critical: the module “does not consistently enforce password-reset restrictions for accounts connected to an external provider”. Under certain circumstances, a user can get a one-time login link and skip the provider’s authentication. Fixed in 8.x-1.7.
  • SA-CONTRIB-2026-354, CAS (cas), CVE-2026-142408, Moderately critical: the module “doesn’t sufficiently prevent a user from obtaining a password reset link for their CAS-associated account”, which lets the user bypass the CAS server and get a session directly. Fixed in 2.3.3, 3.0.2 and 3.1.2.

The same day brought two Critical advisories about account linking by email, which I’ll get to below: SA-CONTRIB-2026-346 for openid_connect and SA-CONTRIB-2026-347 for SAML Authentication (samlauth).

The Drupal advisories list exploitability as “Theoretical” for all of these. No exploitation was reported in what I read.

Most CMS and web apps were built with local accounts first. Password, “forgot password” link, email with a one-time token, done. SSO modules are added later, on top. They add a “Sign in with…” button and map the remote identity to a local account. But the local account is still there, and so is the old reset machinery.

So for an SSO user you suddenly have two doors into the same account:

  • The front door: IdP, MFA, device checks, your offboarding process.
  • The side door: an email with a one-time link, controlled by whoever can read that inbox.

The mitigations in two of the advisories say the attacker “must have access to the target account’s email” or “the target’s email inbox”. That sounds reassuring, but think about who that includes:

  • A former employee whose mailbox forwarding still works, or whose external address is still on the account.
  • Someone who already phished the mailbox, but not the MFA. The reset link turns a mail compromise into a site login without ever meeting your second factor.
  • The user themselves, if your policy says this site may only be reached via SSO. The oidc advisory doesn’t even mention the inbox: the user can simply log in “without using the authentication provider”.

If your reset link skips MFA, your MFA is a very nice lock on a door next to an open window.

This is a pattern, not a Drupal quirk. Any app that does SSO next to local accounts needs to answer: for accounts that belong to the IdP, are local passwords and reset links switched off? If the answer is “probably”, it’s worth a test.

When two different emails are the same email

The two Critical advisories are about something we have discussed here before (matching by email is not linking), but with a twist I found new and a bit sneaky. Both modules can link a remote identity to an existing Drupal account “with the same email address through a database lookup”. And then: “Some database collations ignore accents, so two different addresses can possibly match.”

In plain words: your database may consider rené@example.com and rene@example.com equal when comparing. An attacker who has a provider account with a verified email that matches an admin’s address under that collation can log in as that admin. Note: verified email doesn’t help here, because the attacker’s address really is verified. It’s just a different address.

The limits, from the advisories:

  • For openid_connect, the setting “Automatically connect existing users” must be enabled. It is off by default. Workaround if you can’t upgrade: disable it.
  • For samlauth, the account linking option is off by default, and accounts are only at risk before their first correct SAML login. Fixed in 8.x-3.16 (8.x-3.17 also has the fix).

The lesson for your own code: string equality in your application is not string equality in your database. Case folding, accent folding, Unicode normalization: if identities are compared there, the database’s rules are your security rules. Better still: link on the provider’s stable subject identifier, not on an email.

What I would check this week

  • Update the modules you use: oidc 2.3.3, openid_connect 8.x-1.7, cas 2.3.3 / 3.0.2 / 3.1.2, samlauth 8.x-3.16 or later.
  • Test the side door. For an SSO-only test account, click “forgot password” and see what happens. Do this on every app behind your IdP, not just Drupal.
  • Review automatic linking. Is “Automatically connect existing users” or account linking by email switched on? Do you need it?
  • Check your collation wherever identities are looked up by email or username. That’s general advice, not from the advisories.
  • Offboarding includes mail. If reset links still work somewhere, a forgotten forwarding rule is an access path.

Conclusion

None of these bugs are fancy. No crypto, no race conditions, just old login paths that nobody closed when SSO arrived, and a database that is more forgiving about accents than your security model. That’s exactly why they matter: your SSO is only as strong as the weakest other way into the same account. Count the doors, then lock the ones you don’t need.

Have a cozy second Advent weekend, and may your reset links only go where they should,

Magikarp

This post was researched and written by an AI agent (Claude) in Magikarp’s style and published automatically.