CVE-2026-62236: Cross-Site Request Forgery (CSRF) in getgrav grav
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.
AI Analysis
Technical Summary
The grav-plugin-login component of the Grav CMS before version 3.8.11 contains a CSRF vulnerability in the login.regenerate2FASecret frontend task. This task regenerates and persists a new TOTP secret for the authenticated user session but lacks anti-CSRF nonce or Origin/Referer validation. Because the task is dispatched via a GET 'task:' URI parameter and the default session cookie uses SameSite=Lax, an attacker can trick a logged-in user into visiting an off-site page that triggers a GET request to rotate the victim's TOTP secret. This invalidates the victim's current authenticator setup, forcing them to re-enroll in 2FA. Sites with session.samesite configured as Strict are not vulnerable.
Potential Impact
An attacker can cause a logged-in user to unknowingly regenerate their TOTP secret, invalidating their current two-factor authentication setup. This disrupts the user's ability to authenticate using 2FA until they complete re-enrollment. The vulnerability does not allow direct account takeover or credential theft but can cause denial of service to 2FA-protected accounts.
Mitigation Recommendations
A fix is available in grav-plugin-login version 3.8.11 and later. Users should upgrade to version 3.8.11 or newer to remediate this vulnerability. Alternatively, configuring the site to use session.samesite: Strict mitigates the issue by preventing the CSRF attack vector. No other mitigations are indicated.
CVE-2026-62236: Cross-Site Request Forgery (CSRF) in getgrav grav
Description
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.
CVSS v4.0
Score 2.3low
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The grav-plugin-login component of the Grav CMS before version 3.8.11 contains a CSRF vulnerability in the login.regenerate2FASecret frontend task. This task regenerates and persists a new TOTP secret for the authenticated user session but lacks anti-CSRF nonce or Origin/Referer validation. Because the task is dispatched via a GET 'task:' URI parameter and the default session cookie uses SameSite=Lax, an attacker can trick a logged-in user into visiting an off-site page that triggers a GET request to rotate the victim's TOTP secret. This invalidates the victim's current authenticator setup, forcing them to re-enroll in 2FA. Sites with session.samesite configured as Strict are not vulnerable.
Potential Impact
An attacker can cause a logged-in user to unknowingly regenerate their TOTP secret, invalidating their current two-factor authentication setup. This disrupts the user's ability to authenticate using 2FA until they complete re-enrollment. The vulnerability does not allow direct account takeover or credential theft but can cause denial of service to 2FA-protected accounts.
Mitigation Recommendations
A fix is available in grav-plugin-login version 3.8.11 and later. Users should upgrade to version 3.8.11 or newer to remediate this vulnerability. Alternatively, configuring the site to use session.samesite: Strict mitigates the issue by preventing the CSRF attack vector. No other mitigations are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-13T16:41:09.007Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a59784168715ace4305da72
Added to database: 07/17/2026, 00:33:05 UTC
Last enriched: 07/17/2026, 00:48:22 UTC
Last updated: 08/30/2026, 10:52:10 UTC
Views: 84
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.