CSRF in Getgrav Grav
CVE-2026-62236
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 class: CSRF (Cross-Site Request Forgery)
EPSS: 0.001 (3.9th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L.
Affected products
- Getgrav Grav — versions 0, 3.8.11
Weakness classification (CWE)
References
- disclosure@vulncheck.com (vendor-advisory)
- disclosure@vulncheck.com (third-party-advisory)
Frequently asked questions
- What is CVE-2026-62236?
- CVE-2026-62236 is a medium-severity vulnerability in Getgrav Grav, classified under Cross-Site Request Forgery (CSRF). CVSS score: 5.4/10. Published 2026-07-17.
- How severe is CVE-2026-62236?
- Medium severity. CVSS v3 base score is 5.4 out of 10.