
On 2 December 2026, the Drupal Security Team published SA-CONTRIB-2026-346, a critical access bypass in the OpenID Connect / OAuth client module. It affects versions below 1.7.0. The fix is in OpenID Connect 8.x-1.7.
This guide is for anyone who runs a Drupal site that lets people log in through an external identity provider. You will check whether your site is affected, apply a stopgap if you cannot upgrade today, and then upgrade.
The upgrade is a normal Composer update, but test it before it reaches production.
Key Takeaways
SA-CONTRIB-2026-346 is rated Critical and affects OpenID Connect / OAuth client versions below 1.7.0. The fixed version is 8.x-1.7, created on 1 December 2026 (UTC).
The advisory says the bypass needs the setting "Automatically connect existing users" to be enabled, and that it is off by default.
To check your site, confirm the module is installed, read its version, then read that setting.
If you cannot upgrade today, the advisory's workaround is to disable "Automatically connect existing users".
We recommend upgrading even if the setting is off. The same release also fixes SA-CONTRIB-2026-345.
What the Advisory Says
The advisory describes a flaw in how the module links a login from an external provider to an existing Drupal account. The module can match the two by email address using a database lookup. The advisory says some database collations ignore accents, so two different addresses can match. An attacker could then log in as another user, including an administrator.
Item | Detail (as printed on the advisory) |
|---|---|
Advisory | SA-CONTRIB-2026-346, published 2 December 2026 |
Project | OpenID Connect / OAuth client ( |
Risk | Critical, 15 / 25 |
Type | Access bypass |
CVE | CVE-2026-142400 (as printed) |
Affected versions | Below 1.7.0 |
Solution | Upgrade to OpenID Connect 8.x-1.7 |
Workaround | Disable "Automatically connect existing users" |
The advisory also lists the conditions for an attack. The setting must be enabled, and the attacker needs an account at your identity provider with a verified email that matches the target under your database's collation.
The risk vector shows the exploit is "Theoretical", meaning no public exploit code, and that only "Uncommon" module configurations are exploitable. The advisory rates it Critical, and the release page says sites are "urged to update immediately". Our reading: if the setting is enabled on your site, apply the workaround now unless you can test and deploy the upgrade today, then upgrade once testing passes.
A second advisory in the same release
Release 8.x-1.7 also fixes SA-CONTRIB-2026-345, rated Moderately critical. It covers password-reset restrictions for accounts connected to an external provider. The advisory says an attacker must have access to the target account's email. Its listed workaround is the same setting. One upgrade closes both.
Step 1: Find Out Whether the Module Is Installed
Run these from the project root of each site. If you manage several sites or a multisite, repeat per codebase.
Check Composer first, because it is the quickest test:
composer show drupal/openid_connectIf Composer reports that the package is not installed, also look for openid_connect.info.yml under your modules directories before concluding the module is absent, since a module can be copied in by hand. You can also check the lock file directly:
grep -n '"name": "drupal/openid_connect"' composer.lockThen check whether the module is enabled:
drush pm:list --status=enabled | grep -i openid_connectWithout Drush, open the Extend page in the admin UI and search for "OpenID Connect". A module can be present in code but disabled. We would still upgrade it, since a later release or deployment could enable it.
Step 2: Read the Installed Version
The version appears in the composer show output from Step 1. Composer and drupal.org write the same release differently:
Where you see it | How the fixed release is written |
|---|---|
drupal.org release page and advisory solution | 8.x-1.7 |
Composer and the advisory's affected range | 1.7.0 |
Any version below 1.7.0 is in the affected range, and 1.7.0 is not.
You can also read the version from the lock file if you have jq. If the version shows as a dev string, check the commit date against the 1 December 2026 release:
jq -r '(.packages + .["packages-dev"])[] | select(.name=="drupal/openid_connect") | .version' composer.lockIf you do not use Composer, read the version from the module's openid_connect.info.yml file or the Extend page. If you run a branch other than 8.x-1.x, read the section on other branches below before going further.
Step 3: Check the "Automatically Connect Existing Users" Setting
The advisory ties the attack to one setting. Check it in the admin UI at /admin/config/services/openid-connect. The setting sits in the Advanced section and is labelled "Automatically connect existing users".
With Drush, read the stored value:
drush config:get openid_connect.settings connect_existing_usersWe read the module's source for release 8.x-1.7 to confirm the configuration name, the key and the settings path, so confirm them in your own version's settings form. The advisory says the setting is off by default. Note that drush config:get shows stored values and does not show overrides in settings.php, so check there too, or add --include-overridden.
Use the result like this:
Module version | Setting | What it means |
|---|---|---|
Below 1.7.0 | Enabled | Meets the setting condition the advisory describes. Prioritise this site: upgrade soon, or apply the stopgap first. |
Below 1.7.0 | Disabled | The advisory's stated precondition is not met. Still schedule the upgrade. |
8.x-1.x at 1.7.0 or higher | Either | Not in the affected range. For other branches, see below. |
If the stored value comes back empty, check the exported configuration in your repository and the admin page rather than assuming.
Step 4: Check Your Database Collation (Optional)
The advisory says the problem depends on a database collation that ignores accents. It does not list affected collations, so we cannot tell you which ones qualify.
What you can do is read the collation your site uses for the email column. On MySQL or MariaDB, run this through Drush. We expect the email lookup to use this column, but confirm with your database administrator:
drush sql:query "SHOW FULL COLUMNS FROM users_field_data LIKE 'mail'"If your tables use a prefix, adjust the table name. Take the collation to your database administrator and ask whether it treats accented and unaccented letters as equal. We have not verified this on other database engines.
In our view, treat the answer as one risk factor and not as a reason to skip the upgrade. The release notes list two fixes, and the release is marked as a security update.
Step 5: Apply the Interim Mitigation if You Cannot Upgrade Today
The advisory's workaround is to disable "Automatically connect existing users". It says users can still link their accounts on their Connected Accounts page.
In the admin UI, untick the option at /admin/config/services/openid-connect and save. You can also set it with Drush and then confirm the result:
drush config:set openid_connect.settings connect_existing_users 0
drush config:get openid_connect.settings connect_existing_usersThe second command should report a false value, which may display as 0 or false. If it does not, use the admin UI instead.
If your project manages configuration in code, make the same change in the exported file and deploy it. Otherwise the next configuration import can switch the setting back on.
Expect a side effect, which is our reading and not the advisory's: people whose provider email matches an existing account will no longer be linked automatically. Tell your support team in case someone asks why they were asked to link an account manually.
Step 6: Upgrade to OpenID Connect 8.x-1.7
This command is for sites on the 8.x-1.x branch. If you run 2.x or 3.x, do not run it, because the constraint could move you to an older major version. Read the section on other branches first.
Release 8.x-1.7 works with Drupal ^9.5 || ^10 || ^11, according to its release page. The release notes list two fixes and no separate upgrade steps. Still, do this in a non-production environment first.
First, back up the database and the codebase. Then update the package. The release page gives this command:
composer require 'drupal/openid_connect:^1.7'If your existing 8.x-1.x constraint already allows 1.7, this also works:
composer update drupal/openid_connect --with-dependenciesNext, run database updates and clear caches:
drush updatedb -y
drush cache:rebuildExport configuration if your workflow requires it, and commit the changed composer.json, composer.lock and any config files. Then test the login flow with your identity provider. Log in as an existing user and as a new user, and open the Connected Accounts page.
Finally, confirm the version with composer show drupal/openid_connect and deploy through your normal pipeline.
If you disabled "Automatically connect existing users" as a stopgap, decide whether you still need it after upgrading. One release note is titled "Require an unambiguous email match when linking OpenID Connect accounts". We have not verified whether re-enabling the setting is safe in 1.7. Leave it off unless you need it, and ask the maintainers or your security owner first.
We have not run this upgrade on a live site for this guide. The commands are standard Composer and Drush usage, and you should test them in your own environment.
If You Run a Different Branch
The advisory names a single fix, 8.x-1.7. It does not say what applies to other branches. Here is what the project page showed on 2 December 2026:
- 8.x-1.7: the stable release, covered by the Drupal Security Team.
- 3.0.0-alpha10: an alpha release for Drupal
^10.3 || ^11. Its summary mentions "Security hardening", but it does not say that these two advisories are fixed. We did not verify this, so do not assume it. - 2.0.0 alpha and beta releases: labelled "Unsupported".
- 7.x-1.x releases: labelled "Unsupported".
If you run 2.x, we have not verified whether it is affected or how to move it, so ask the maintainers and plan a move to a supported branch. If you run 3.x alpha, check the project's issue queue or ask the maintainers whether your version includes the fixes. If the setting exists in your version, disabling it is the advisory's workaround for the affected versions, and we suggest it as a precaution. We did not verify that it applies to 3.x.
If a Drupal 7 site uses the 7.x module, the advisory does not describe a fix for it. The project page labels the 7.x releases "Unsupported", and the advisory does not state a fix for them. Our guide on migrating or rebuilding a Drupal 7 site covers the decision.
Sites on older Drupal core also face a core support question. See what to do about Drupal 10 end of life and our Drupal 10 to 11 upgrade checklist.
After You Upgrade: Look for Signs of Misuse
The advisory's risk vector lists exploit maturity as Theoretical, meaning no public exploit code, and we do not know of reports of exploitation. A short review is still reasonable on sites that had the setting enabled. These checks are our suggestions, not steps from the advisory:
- Review recent logins for administrator accounts and look for times or locations you do not recognise.
- Look for newly created accounts with elevated roles.
- Check your authentication and watchdog logs around any unusual activity.
- If something looks wrong, reset the affected passwords and review the account's permissions.
Rolling This Out Across Many Sites
If you manage more than one Drupal site, a simple inventory keeps the work orderly. For each site, record the module version, the setting value, who owns the site and the planned upgrade date.
Run the jq command from Step 2 against each repository's composer.lock. Sites below 1.7.0 with the setting enabled go first. Sites below 1.7.0 with the setting off go in the same maintenance window if you can.
FAQ
Do I need to act if "Automatically connect existing users" is off?
The advisory says the setting must be enabled for the bypass. With it off, that condition is not met. We still recommend upgrading, since 8.x-1.7 also fixes SA-CONTRIB-2026-345 and is marked as a security update.
Does the upgrade need database changes?
The release notes list no separate upgrade steps, and we did not find a documented schema change. Run drush updatedb anyway, as you would after any module update.
Is the vulnerability being exploited?
The advisory's risk vector lists exploit maturity as "Theoretical", meaning no public exploit code. We do not know of reports of exploitation. The advisory rates the issue Critical, and we recommend upgrading regardless.
Which Drupal versions does the fix support?
Release 8.x-1.7 lists compatibility with Drupal ^9.5 || ^10 || ^11. Check the support status of your own core version too, since the module fix does not change it.
Conclusion
Check the version, check the setting, then upgrade to 8.x-1.7. If you cannot upgrade today, disable "Automatically connect existing users" as the advisory suggests, and schedule the update.
We read the advisories, the release page and the module source for this guide, and we did not reproduce the vulnerability. If you want help auditing a portfolio of Drupal sites, our about page explains who we are, or you can get in touch with us.
Sources
All sources were retrieved on 2 December 2026. The release page showed the 8.x-1.7 release created at 10:20 UTC on 1 December 2026.
- Drupal Security Team, SA-CONTRIB-2026-346: OpenID Connect / OAuth client - Critical - Access bypass
- Drupal Security Team, SA-CONTRIB-2026-345: OpenID Connect / OAuth client - Moderately critical - Improper authentication
- Drupal.org, OpenID Connect / OAuth client project page
- Drupal.org, OpenID Connect 8.x-1.7 release page
- Drupal.org, OpenID Connect releases list
- Drupal.org GitLab, openid_connect module source, tag 8.x-1.7




