DRUPAL-CONTRIB-2022-002
This module enables you to implement OAuth 2.0 authentication for Drupal. The module doesn't sufficiently verify client…
Mitigation
- Upgrade drupal/simple_oauth to one of 4.6.0, 5.0.6 (or later in the same release line).
Who should check
- Projects that depend on Packagist package drupal/simple_oauth (< 4.6.0; >= 5.0.0, < 5.0.6)
Vulnerability facts
- Affected
- drupal/simple_oauth < 4.6.0; >= 5.0.0, < 5.0.6
- Fixed in
- 4.6.0, 5.0.6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
Description
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](https://tools.ietf.org/html/rfc6819#section-5.2.3.5). 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](https://oauth.net/security/) pertaining to OAuth security.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist drupal/simple_oauth | < 4.6.0; >= 5.0.0, < 5.0.6 | 4.6.0, 5.0.6 | osv |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by DRUPAL-CONTRIB-2022-002. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/DRUPAL-CONTRIB-2022-002.md Affected: drupal/simple_oauth < 4.6.0; >= 5.0.0, < 5.0.6 Fixed in: 4.6.0, 5.0.6 Steps: 1. Search this machine and project for drupal/simple_oauth (Packagist): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is DRUPAL-CONTRIB-2022-002 being exploited?
There is no confirmed exploitation: DRUPAL-CONTRIB-2022-002 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is DRUPAL-CONTRIB-2022-002?
It has no CVSS score yet. Unknown.
Which versions are affected by DRUPAL-CONTRIB-2022-002?
drupal/simple_oauth < 4.6.0; >= 5.0.0, < 5.0.6.
Is there a fix for DRUPAL-CONTRIB-2022-002?
Yes. Fixed in 4.6.0, 5.0.6. Upgrade drupal/simple_oauth to one of 4.6.0, 5.0.6 (or later in the same release line).
How do I check if I'm affected by DRUPAL-CONTRIB-2022-002?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.