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

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. 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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.