OAuth2 Server - Moderately critical - Access bypass - SA-CONTRIB-2025-020
Description
Missing authorization in Drupal OAuth2 Server allows forceful browsing, enabling authentication bypass on disabled servers.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Missing authorization in Drupal OAuth2 Server allows forceful browsing, enabling authentication bypass on disabled servers.
Vulnerability
Overview
CVE-2025-31691 is a missing authorization vulnerability in the Drupal OAuth2 Server module, affecting versions before 2.1.0. The module fails to consistently enforce admin configurations, allowing users to access OAuth2 endpoints even when the server has been administratively disabled [1][2]. This constitutes a forceful browsing issue.
Exploitation
An attacker with network access to a Drupal site running the vulnerable module can exploit this flaw without authentication. By directly accessing OAuth2 endpoints, the attacker can bypass the server's disabled state and authenticate via OAuth2, gaining tokens and potentially accessing protected resources [2].
Impact
Successful exploitation results in unauthorized OAuth2 authentication, allowing an attacker to impersonate legitimate users, access private data, or perform actions on behalf of authenticated users. The CVSS severity is moderate, but the access bypass can lead to significant privilege escalation if the OAuth2 server is integrated with other systems.
Mitigation
The vulnerability is fixed in version 2.1.0 of the OAuth2 Server module. Users are strongly advised to upgrade immediately [2]. No workarounds are currently available.
AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
drupal/oauth2_serverPackagist | < 2.1.0 | 2.1.0 |
Affected products
2- Drupal/OAuth2 Serverv5Range: 0.0.0
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-4f8q-mwgc-3mwcghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-31691ghsaADVISORY
- www.drupal.org/sa-contrib-2025-020ghsaWEB
News mentions
0No linked articles in our index yet.