CVE-2026-72822 Grav before 1.0.13 Authentication Bypass via disable2fa

High 8.7 Published Updated

Attackers with narrow-scope API keys can bypass two-factor authentication on other accounts, leading to account takeover in Grav CMS.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-72822?

CVE-2026-72822 is a high-severity authentication bypass vulnerability in getgrav grav, published on 14 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The getgrav/grav-plugin-api Composer package before 1.0.13 (affected <= 1.0.12) fails to enforce API key scope caps on the disable2fa endpoint. Unlike the sibling generate2fa endpoint, disable2fa authorizes the admin (non-self) path solely via ACL reads (isSuperAdmin/hasPermission) and never invokes requirePermission(), so the api_key_scopes cap is never applied. As a result, a holder of a narrow-scope API key on a super account, or a non-super account whose ACL includes api.users.write, can force-disable two-factor authentication on any non-super target account via POST /api/v1/users/{user}/2fa/disable without providing a TOTP code, facilitating account takeover.

Weakness: CWE-306

Which versions are affected by CVE-2026-72822?

How do I fix CVE-2026-72822?

No fix has been published for CVE-2026-72822 yet. Limit exposure of the affected software until one is available.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2026-72822 being exploited?

There is no known exploitation of CVE-2026-72822 in the wild and no public exploit code.

Sources

Also known as GHSA-993x-642g-h4x5.

Is CVE-2026-72822 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free