Advisory record · GHSA-7mgc-c7pq-3rr3

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

CVSS 9.1 CriticalCriticalEPSS 0.0050 · 43rd percentile

Critical, because:

  • CVSS score 9.1: 9.0 or more.

How we decide what’s critical

Published by the GitHub Advisory Database at 2 Sept 2026, 22:01 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
getgrav/gravPackagist<2.0.42.0.4
Identifiers
GHSA-7mgc-c7pq-3rr3 · CVE-2026-62232 · CVE-2026-62669 · PKSA-p6yn-thc9-dbs3
Weakness (CWE)
CWE-287 · CWE-862
Published
2 Sept 2026
Updated
2 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Grav versions before 2.0.4 are affected by a flaw in the login plugin's two-factor authentication: during the pending TOTP step, the regenerate2FASecret task can be invoked without an authorization check or CSRF nonce. An attacker who already knows a user's password could overwrite that user's 2FA secret and then complete the 2FA flow with a code they compute, effectively reducing the second factor to the password alone. The fix is to upgrade to Grav 2.0.4 or later.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
9.1 Critical 4.0 CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0050, the 43rd percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:06 UTC First seen by agentprime
  2. 31 Oct 2026, 14:06 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.