Unrated

drupal/simple_oauth - SA-CONTRIB-2022-002

  • Disclosed: 05.01.2022
  • Updated: 11.10.2026 13:17

This module enables you to implement OAuth 2.0 authentication for Drupal.

The module doesn't sufficiently verify client secret keys for "confidential" OAuth 2.0 clients when using certain grant types. The token refresh and client credentials grants are not affected.

This vulnerability is mitigated by the fact that the vast majority of OAuth 2.0 clients in the wild are public, not confidential. Furthermore, all affected grant types still require users to authenticate to Drupal during the OAuth flow.

The implicit grant type is insecure for other reasons (and still requires user authentication) and is disabled by default.

Sites at risk of information disclosure would be specifically configured to restrict access based on the OAuth client's confidentiality status and configured scopes, not only traditional Drupal user permissions and roles.

Further mitigation includes configuring allowed redirect URIs for clients. This is an OAuth best practice for guarding against man-in-the-middle attacks on authorization codes, and prevents redirection to imposter clients.

Anyone implementing OAuth 2.0 on their Drupal site is also encouraged to review the relevant RFCs and Internet-Drafts pertaining to OAuth security.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package drupal/simple_oauth < 4.6.0, >= 5.0.0, < 5.0.6 4.6.0, 5.0.6
Drupal module drupal/simple_oauth < 4.6.0, >= 5.0.0, < 5.0.6 4.6.0, 5.0.6

References

CVSS score -
Weakness (CWE)
-
Platform
Composer, Drupal
Package
drupal/simple_oauth
Disclosed
05.01.2022
Updated
11.10.2026 13:17

Sources and licenses

OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2022-002 - CC BY-SA 2.0; code GPL-2.0-or-later

Vulnerability history: drupal/simple_oauth

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
01.2022 10.2025
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Unrated 1

Disclosures per year

  1. 2022: 1
  2. 2023: 0
  3. 2024: 0
  4. 2025: 1
  5. 2026: 0
  1. High · 7.5 CVE-2025-12466 >= 6.0.0, < 6.0.7 6.0.7
  2. drupal/simple_oauth - SA-CONTRIB-2022-002 this entry
    Unrated drupal-contrib-2022-002 < 4.6.0, >= 5.0.0, < 5.0.6 4.6.0, 5.0.6

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.