# CVE-2026-62236: getgrav grav-plugin-login CSRF in regenerate2FASecret task

Source: https://junglewise.ai/threats/cve-2026-62236-getgrav-grav-plugin-login-csrf-in-regenerate2fasecret-task  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-17. Updated: 2026-07-17  
License: CC BY 4.0 with a link back

CVE-2026-62236 · Severity: medium · CVSS 5.4 · Published 2026-07-17

The Login plugin for the Grav CMS contains a security flaw that allows an attacker to reset a user's two-factor authentication (2FA) settings. By tricking a logged-in user into clicking a malicious link, an attacker can force the system to generate a new security secret, making the user's existing authenticator app stop working. This results in a service disruption where the user must re-enroll their 2FA device to regain full access to their account.

Technologies: [Grav Login Plugin](https://junglewise.ai/threats/technologies/login-plugin). Vendors: [Grav](https://junglewise.ai/threats/vendors/grav).

## Quick answers

**Is CVE-2026-62236 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-62236 being exploited in the wild.

**How severe is CVE-2026-62236?** Medium severity, with a CVSS score of 5.4, published 17 July 2026.

**Which products and versions are affected?** getgrav grav-plugin-login < 3.8.11.

**Is there a fix for CVE-2026-62236?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-62236 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-62236?** Check whether you run Grav Login Plugin. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A Cross-Site Request Forgery (CSRF) vulnerability exists in the 'login.regenerate2FASecret' frontend task of the Grav Login plugin. The application fails to implement anti-CSRF nonces or Origin/Referer checks for this specific task. Because Grav dispatches tasks via GET parameters and uses 'SameSite=Lax' for session cookies by default, an attacker can trigger the secret regeneration via a top-level GET navigation (e.g., a malicious link). This overwrites the 'twofa_secret' in the user's account file, desynchronizing their authenticator app from the server. The vulnerability is patched in version 3.8.11; sites using 'session.samesite: Strict' are not affected.

## Affected products

- getgrav grav-plugin-login < 3.8.11

## Timeline

- 2026-06-29: advisory: GitHub Security Advisory published
- 2026-07-17: disclosed: NVD publication date

## References

- [https://github.com/getgrav/grav/security/advisories/GHSA-4px8-7p53-282r](https://github.com/getgrav/grav/security/advisories/GHSA-4px8-7p53-282r)
- [https://www.vulncheck.com/advisories/grav-plugin-login-csrf-via-regenerate2fasecret](https://www.vulncheck.com/advisories/grav-plugin-login-csrf-via-regenerate2fasecret)

## Related threats

- [Grav Login plugin missing authorization in invitation task](https://junglewise.ai/threats/cve-2026-114658-grav-login-plugin-from-3-6-0-before-3-9-13-contains-a-missing)
- [Grav Login plugin email address enumeration in registration](https://junglewise.ai/threats/cve-2026-72699-grav-login-plugin-email-address-enumeration-in-registration)
- [Grav Login plugin privilege escalation in unlock handler](https://junglewise.ai/threats/cve-2026-56710-grav-login-plugin-privilege-escalation-in-unlock-handler)
- [Grav Login plugin privilege escalation in registration handler](https://junglewise.ai/threats/cve-2026-42613-grav-login-plugin-privilege-escalation-in-registration-handler)
