CVE-2025-31684 OAuth2 Client - Moderately critical - Cross Site Request Forgery - SA-CONTRIB-2025-013

Medium 6.8 Published Updated

Attackers can trick authenticated users into performing unwanted actions via CSRF in the Drupal OAuth2 Client module.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-31684?

CVE-2025-31684 is a medium-severity vulnerability in Drupal OAuth2 Client, published on 31 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Cross-Site Request Forgery (CSRF) vulnerability in Drupal OAuth2 Client allows Cross Site Request Forgery.This issue affects OAuth2 Client: from 0.0.0 before 4.1.3.

Weakness: CWE-352

Which versions are affected by CVE-2025-31684?

2 open source packages ship an affected version, including drupal/oauth2_client. It affects 1 product.

PackageAffectedFixed in
drupal/oauth2_client PackagistAll versions4.1.3
drupal/oauth2_client PackagistAll versions4.1.3
Linux distribution packages (1)
drupal/oauth2_client Packagist:https://packages.drupal.org/8All versions4.1.3

Products include Mskcc Oauth2 Client.

How do I fix CVE-2025-31684?

Upgrade drupal/oauth2_client to 4.1.3 or later.

Is CVE-2025-31684 being exploited?

There is no known exploitation of CVE-2025-31684 in the wild and no public exploit code.

Sources

Also known as DRUPAL-CONTRIB-2025-013, GHSA-6chf-hhqf-749c.

Is CVE-2025-31684 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free