Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. getgrav/grav
  4. ›
  5. CVE-2026-62669

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

September 2, 2026

When 2FA is enabled on an account, submitting correct credentials authenticates the user but leaves them unauthorized pending TOTP verification. During this pending-challenge window, the login.regenerate2FASecret task which requires only $user->exists(), not $user->authorized can be called without a CSRF nonce. It overwrites the victim’s twofa_secret on disk with an attacker-chosen value, returns the new secret in the JSON response, and the attacker computes a valid TOTP code to complete the 2FA flow. The second factor is reduced to password-only. The exploit was confirmed live after enabling 2FA to a user.

References

  • github.com/advisories/GHSA-7mgc-c7pq-3rr3
  • github.com/getgrav/grav-plugin-login/commit/5d1b722298cb947d8f434025d121b99152a2c630
  • github.com/getgrav/grav-plugin-login/releases/tag/3.8.11
  • github.com/getgrav/grav/releases/tag/2.0.4
  • github.com/getgrav/grav/security/advisories/GHSA-7mgc-c7pq-3rr3
  • nvd.nist.gov/vuln/detail/CVE-2026-62669

Code Behaviors & Features

Detect and mitigate CVE-2026-62669 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.4

Fixed versions

  • 2.0.4

Solution

Upgrade to version 2.0.4 or above.

Impact 7.4 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

packagist/getgrav/grav/CVE-2026-62669.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 10 Sep 2026 00:19:46 +0000.