SA-CONTRIB-2026-284: Critical severity composer/drupal/oauth_login_oauth2 vulnerability

Published Oct 28, 2026
·
Updated

This module enables you to log in to your Drupal site using any OAuth 2.0 or OpenID Connect compliant identity provider. The module doesn't sufficiently check access on a configuration route, or check whether the identity provider has verified the email address it returns. Together, these let an attacker log in as any existing user whose email address they know. This vulnerability is mitigated by the fact that an attacker must have an account with an identity provider the site is configured to use. They must also be able to set the value of at least one attribute that provider returns, such as a username.

Credit

Sanjeev Kumar (ksanjeev284)

Affected Software

1 affected componentFixes available
composer/drupal/oauth_login_oauth2<3.1.1
3.1.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/drupal/oauth_login_oauth2 to a version that resolves this vulnerability.

    Fixed in 3.1.1

Event History

Oct 28, 2026
Advisory Published
via Drupal·12:00 AM
Data Sourced
via Drupal·12:00 AM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What does an attacker need to exploit this issue?

The attacker must have an account with an identity provider configured for the site. They must also be able to set the value of at least one attribute returned by that provider, such as a username.

2

Which users could be targeted?

An attacker can log in as any existing user whose email address they know, if the required identity-provider conditions are met.

3

Are sites without a configured OAuth 2.0 or OpenID Connect identity provider exposed through this attack path?

The described attack requires an account at an identity provider that the site is configured to use. The provided information does not describe exploitation where no such configured provider exists.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203