CVE-2026-62236

published 17 Jul 2026 · updated 17 Jul 2026

grav-plugin-login < 3.8.11 CSRF via regenerate2FASecret

5.4MediumCVSS 5.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 3.8.11.

grav-plugin-login before 3.8.11 contains a cross-site request forgery (CSRF) vulnerability in the login.regenerate2FASecret frontend task, which regenerates and persists a new TOTP secret for the authenticated session user without any anti-CSRF nonce or Origin/Referer check. Because Grav core dispatches the task from the GET 'task:' URI parameter and the default session cookie is SameSite=Lax, an attacker can lure a logged-in victim to an off-site page that performs a top-level GET navigation, rotating the victim's TOTP secret so their enrolled authenticator no longer matches the server, effectively forcing 2FA re-enrollment. Sites configured with session.samesite: Strict are not affected.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
getgrav<3.8.113.8.11

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-62236 severity on Zeptric[![CVE-2026-62236](https://zeptric.io/badge/cve/CVE-2026-62236.svg)](https://zeptric.io/cve/CVE-2026-62236)