published 17 Jul 2026 · updated 8 Oct 2026
Grav < 2.0.4 2FA Bypass via Secret Regeneration
7.4HighCVSS 7.4EPSS 0%
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 2.0.4.
Grav before 2.0.4 contains a two-factor authentication bypass vulnerability in the login plugin where the regenerate2FASecret task checks only user existence, not authorization, during the pending TOTP challenge window. Attackers who know the victim's password can call this task without a CSRF nonce to overwrite the 2FA secret with an attacker-chosen value, compute a valid TOTP code, and complete authentication while reducing 2FA to password-only protection.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| getgrav | <2.0.4 | 2.0.4 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket