drupal/simple_oauth - SA-CONTRIB-2022-002
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.
| Platform | Package | Vulnerable versions | Fixed 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
- 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
- 2022: 1
- 2023: 0
- 2024: 0
- 2025: 1
- 2026: 0
-
drupal/simple_oauth - SA-CONTRIB-2022-002 this entry
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.