Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/getgrav/grav/security/advisories/GHSA-22p9-6fh4-mmf2
- https://www.vulncheck.com/advisories/grav-before-authentication-bypass-via-disab
- https://github.com/getgrav/grav/security/advisories/GHSA-22p9-6fh4-mmf2
FAQ
What is CVE-2026-72822?
CVE-2026-72822 is a vulnerability with a CVSS score of 8.8 (HIGH). 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 auth...
How severe is CVE-2026-72822?
CVE-2026-72822 has been rated HIGH with a CVSS base score of 8.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-72822?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.