PT-2026-60646 · Grav · Grav-Plugin-Login

·

CVE-2026-62236

·

Published

2026-07-17

·

Updated

2026-07-17

CVSS v3.1

5.4

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Name of the Vulnerable Software and Affected Versions grav-plugin-login versions prior to 3.8.11
Description A cross-site request forgery (CSRF) issue exists in the login.regenerate2FASecret frontend task. The system regenerates and persists a new Time-based One-Time Password (TOTP) secret for the authenticated session user without implementing an anti-CSRF nonce or Origin/Referer checks. Since the Grav core dispatches the task via the task: URI parameter and the default session cookie uses SameSite=Lax, an attacker can trick a logged-in user into visiting a malicious off-site page. This action triggers a top-level GET navigation that rotates the user's TOTP secret, causing the enrolled authenticator to mismatch the server and forcing the user to re-enroll in two-factor authentication (2FA). This issue does not affect sites configured with session.samesite: Strict.
Recommendations Update grav-plugin-login to version 3.8.11 or later. Configure session.samesite to Strict to prevent the exploitation of this issue.

Exploit

Fix

CSRF

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-62236

Affected Products

Grav-Plugin-Login