CVE-2025-31694 Two-factor Authentication (TFA) - Moderately critical - Access bypass - SA-CONTRIB-2025-023
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.
| Package | Affected | Fixed in |
|---|---|---|
drupal/tfa Packagist | All versions | 1.10.0 |
drupal/tfa Packagist | All versions | 1.10.0 |
Linux distribution packages (1)
drupal/tfa Packagist:https://packages.drupal.org/8 | All versions | 1.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.
Other vulnerabilities in Drupal Two-factor Authentication (TFA)
- CVE-2024-13239 Two-factor Authentication (TFA) - Moderately critical - Access bypass - SA-CONTRIB-2024-003
- CVE-2024-13279 Two-factor Authentication (TFA) - Critical - Access bypass - SA-CONTRIB-2024-043
- CVE-2025-7030 Two-factor Authentication (TFA) - Less critical - Access bypass - SA-CONTRIB-2025-085
Sources
Also known as DRUPAL-CONTRIB-2025-023, GHSA-hf6c-fgp3-jfch.