Critical Authorization Flaw in Drupal OAuth2 Server: Forceful Browsing Risk

drupal/oauth2_server Updated 02 Oct 2025

Summary

01/04/2025
Yes i
High
9.8

CVE-2025-31691: Drupal OAuth2 Server Missing Authorization vulnerability. Affects drupal/oauth2_server versions < 2.1.0. Fixed in 2.1.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Drupal OAuth2 Server is a widely used package that facilitates OAuth2 authentication for Drupal applications. It allows developers to implement secure authorization mechanisms, enabling users to grant third-party applications limited access to their resources without exposing their credentials. However, the package has been found to have a critical vulnerability that could allow unauthorized users to access restricted resources, posing a significant security risk.

Vulnerability Detail

The vulnerability in the Drupal OAuth2 Server arises from a missing authorization check, which can lead to forceful browsing. This means that an attacker could potentially access sensitive resources or data without proper authentication. The issue affects versions from 0.0.0 up to, but not including, 2.1.0. The lack of proper authorization checks can lead to unauthorized access, data leaks, and compromise of user privacy.

How To Fix

Minimum fixed version

2.1.0

This is the first release that contains the fix.

composer require drupal/oauth2_server:2.1.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds to mitigate this vulnerability without updating the package. It is highly recommended to apply the patch as soon as possible to prevent any potential exploitation.

Conclusion

The missing authorization vulnerability in the Drupal OAuth2 Server poses a significant risk to applications using this package. It is crucial to update to version 2.1.0 or later to ensure proper authorization checks are in place. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the security of your applications.

See every vulnerability recorded for drupal/oauth2_server →

Share this vulnerability

FAQ

The vulnerability is a missing authorization check that allows unauthorized users to access restricted resources, leading to potential data breaches.

The vulnerability affects all versions from 0.0.0 up to, but not including, 2.1.0.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Failing to fix this vulnerability could lead to unauthorized access to sensitive data, compromising user privacy and application integrity.

There are no effective workarounds to mitigate this risk without updating to the patched version of the package.

Related vulnerabilities

Recent vulnerabilities recorded for drupal/oauth2_server.

How To Fix

Minimum fixed version

2.1.0

This is the first release that contains the fix.

composer require drupal/oauth2_server:2.1.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback