CVE-2025-31694 Two-factor Authentication (TFA) - Moderately critical - Access bypass - SA-CONTRIB-2025-023

High 8.1 Published Updated

An attacker can bypass two-factor authentication controls in the Drupal TFA module via forceful browsing, compromising account security.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-31694?

CVE-2025-31694 is a high-severity authentication bypass vulnerability in Drupal Two-factor Authentication (TFA), published on 31 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Incorrect Authorization vulnerability in Drupal Two-factor Authentication (TFA) allows Forceful Browsing.This issue affects Two-factor Authentication (TFA): from 0.0.0 before 1.10.0.

Weakness: CWE-288

Which versions are affected by CVE-2025-31694?

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

PackageAffectedFixed in
drupal/tfa PackagistAll versions1.10.0
drupal/tfa PackagistAll versions1.10.0
Linux distribution packages (1)
drupal/tfa Packagist:https://packages.drupal.org/8All versions1.10.0

Products include Two-Factor Authentication Project Two-Factor Authentication.

How do I fix CVE-2025-31694?

Upgrade drupal/tfa to 1.10.0 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2025-31694 being exploited?

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

Sources

Also known as DRUPAL-CONTRIB-2025-023, GHSA-hf6c-fgp3-jfch.

Is CVE-2025-31694 in your software?

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

Check your SBOMs for free