CVE Catalog

CVE-2026-62236

MediumCVSS 5.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.10%

1th percentile - higher than 1% of all known CVEs

Summary

The Grav Login plugin before version 3.8.11 contains a cross-site request forgery (CSRF) vulnerability in the login.regenerate2FASecret frontend task. An attacker can trick a logged-in user into visiting a malicious page, which regenerates a new TOTP secret without any anti-CSRF nonce or Origin/Referer check, invalidating the existing two-factor authentication key.

Risk Assessment

The risk is that an attacker can force a TOTP secret reset for a logged-in administrator or user, leading to account lockout until 2FA re-enrollment. This can cause service disruption, loss of trust, or potential session hijacking if the attacker intercepts the new secret.

Recommendation

Immediately update the grav-plugin-login plugin to version 3.8.11 or later. Additionally, configure sessions with session.samesite: Strict to fully mitigate the vulnerability.

Other vulnerabilities in Grav Login Plugin

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS