CVE-2026-72822: Grav before 1.0.13 Authentication Bypass via disable2fa
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 apikeyscopes 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
getgrav/grav-plugin-apito a version that resolves this vulnerability.Fixed in 1.0.13 - Compensating control
Restrict POST /api/v1/users/{user}/2fa/disable so only super accounts can access it (e.g., enforce an admin-only gate and do not allow non-super API keys with broad ACLs to call disable2fa).
- Compensating control
Remove or reduce the ACL permission api.users.write for non-super API keys so they cannot force-disable 2FA on other user accounts via /api/v1/users/{user}/2fa/disable.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-72822?
CVE-2026-72822 has a critical severity rating of 9.8.
How do I fix CVE-2026-72822?
To fix CVE-2026-72822, update the getgrav/grav-plugin-api package to version 1.0.13 or later.
What system is affected by CVE-2026-72822?
CVE-2026-72822 affects the Grav CMS before version 1.0.13.
What type of vulnerability is CVE-2026-72822?
CVE-2026-72822 is an authentication bypass vulnerability.
What components are impacted by CVE-2026-72822?
CVE-2026-72822 impacts the disable2fa API endpoint of the Grav plugin.