# phpMyFAQ's two-factor authentication login bypasses the password factor

High severity, published 2026-09-24. Update thorsten/phpmyfaq to 4.1.6 or later and phpmyfaq/phpmyfaq to 4.1.6 or later: composer update thorsten/phpmyfaq phpmyfaq/phpmyfaq.

Canonical URL: https://buzzphp.com/security/ghsa-8gpw-xvpf-hvx5 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.1) |
| Published | 2026-09-24 |
| Updated | 2026-09-24 |
| CVE | [CVE-2026-56737](https://nvd.nist.gov/vuln/detail/CVE-2026-56737) |
| GHSA | [GHSA-8gpw-xvpf-hvx5](https://github.com/advisories/GHSA-8gpw-xvpf-hvx5) |
| Weakness | CWE-287 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| thorsten/phpmyfaq | >= 3.2.0, < 4.1.6 | 4.1.6 |
| phpmyfaq/phpmyfaq | >= 3.2.0, < 4.1.6 | 4.1.6 |

## What to do

Update thorsten/phpmyfaq to 4.1.6 or later and phpmyfaq/phpmyfaq to 4.1.6 or later: composer update thorsten/phpmyfaq phpmyfaq/phpmyfaq.

Check which version you run with `composer show thorsten/phpmyfaq`, and every affected package with `composer audit`.

## About this advisory

Summary The public two-factor verification endpoint POST /check logs a user in based solely on a valid 6-digit TOTP token and a chosen user-id. It does not require — and is not bound to — a prior successful password authentication. For any account that has 2FA enabled, an unauthenticated attacker can authenticate without knowing the password, reducing the account to a single factor (a 6-digit code) that is itself brute-forceable because this endpoint has no lockout (see Finding 2). This is an authentication bypass of the primary credential for all 2FA-protected accounts, including administrators.

Details src/phpMyFAQ/Controller/Frontend/AuthenticationController.php:255-283:



## Links

- [GHSA-8gpw-xvpf-hvx5 on GitHub](https://github.com/advisories/GHSA-8gpw-xvpf-hvx5)
- [CVE-2026-56737 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-56737)
- [All Composer security advisories](https://buzzphp.com/security)
