CVE-2026-142400: 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.
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 1.7.0 - Configuration
Keep Automatically connect existing users disabled; the vulnerability requires this setting to be enabled.
Drupal OpenID Connect module Automatically connect existing users = false
Event History
Frequently Asked Questions
Which deployments are exposed to account takeover?
Deployments are exposed only when the Automatically connect existing users setting is enabled. The module has this setting disabled by default, so default configurations are mitigated.
What does an attacker need to exploit this issue?
The attacker needs an account at the configured OpenID Connect provider with a verified email address. That address must match the target Drupal user's email address under the database collation, such as where the collation ignores accent differences.
What is the potential impact if exploitation succeeds?
An attacker may be linked to and log in as an existing Drupal account whose email address collides under the database collation. The affected account could be an administrator.