SA-CONTRIB-2026-346: Critical severity composer/drupal/openid_connect vulnerability
This module lets users log in to Drupal through an external OpenID Connect provider. The module can link a remote identity to an existing Drupal account with the same email address through a database lookup. Some database collations ignore accents, so two different addresses can possibly match. An attacker can then log in as another user, including an administrator. This vulnerability is mitigated by the fact that:
The setting Automatically connect existing users must be enabled. It is off by default. The attacker needs a provider account with a verified email address that matches the target address under that collation.
Credit
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/drupal/openid_connectto a version that resolves this vulnerability.Fixed in 8.x-1.7 - Configuration
Keep “Automatically connect existing users” disabled; it is off by default.
Drupal OpenID Connect module Automatically connect existing users = false
Event History
Frequently Asked Questions
Who is exposed to account takeover?
Sites using composer/drupal/openid_connect are exposed only if the Automatically connect existing users setting is enabled. Under affected database collations, a remote identity whose verified email differs only by accents may be linked to an existing Drupal account, including an administrator account.
What does an attacker need to exploit this?
The attacker needs an account at an external OpenID Connect provider with a verified email address that matches the target user's email address according to the database collation, despite being a different address. They can then authenticate through that provider as the matched Drupal user.
Are default installations affected?
The Automatically connect existing users setting is off by default, which mitigates the issue. Sites that have not enabled this setting are not exposed through the described automatic account-linking behavior.
What can be done if patching is not immediately possible?
Disable Automatically connect existing users to prevent remote identities from being automatically linked to existing Drupal accounts based on email-address lookup.