CVE-2026-62236
MEDIUM
5.4
CVSS 3.1
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.
Metadata
Severity & Metrics
5.4
MEDIUM CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Affected products (1)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| getgrav | grav | — | 0 < 3.8.11, 3.8.11 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-352 | cna | Cross-Site Request Forgery (CSRF) |
CVSS scores (2)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 5.4 | MEDIUM | 3.1 | cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L |
| 2.3 | LOW | 4.0 | cna | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N |
References (2)
- GitHub Security Advisory (GHSA-4px8-7p53-282r) https://github.com/getgrav/grav/security/advisories/GHSA-4px8-7p53-282r
- VulnCheck Advisory: grav-plugin-login < 3.8.11 CSRF via regenerate2FASecret https://www.vulncheck.com/advisories/grav-plugin-login-csrf-via-regenerate2fasecret