Summary
CVE-2026-130747 is an authentication bypass vulnerability in Grav CMS. Anonymous visitors can create super-admin accounts because UserCollection::count() uses an unescaped glob() pattern. The CVE record rates it 9.2 (Critical) under CVSS v4.0.
Technical details
- Root cause:
UserCollection::count()builds aglob()pattern without escaping it (CWE-155, Improper Neutralization of Wildcards or Matching Symbols). - Trigger conditions: the Grav installation path contains brackets or backslashes. In that case the account count returns zero.
- Attack vector: the network. An unauthenticated attacker abuses the setup endpoint or the admin registration form.
- Impact: the attacker creates a super-admin account. This can give full control of the site, with high impact on confidentiality, integrity and availability.
Affected software
- Grav 1.x: all versions before 1.7.53.7
- Grav 2.x: 2.0.0 through 2.2.17 (before 2.2.18)
Severity
- CVSS v4.0: 9.2 (Critical),
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS v3.1: 8.1 (High),
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: upgrade to Grav 1.7.53.7 (1.x branch) or Grav 2.2.18 (2.x branch).
- Review the existing administrator accounts for any you don’t recognize.
- No workarounds were listed in the sources reviewed. If you can’t patch right away, you could restrict access to the setup and admin registration endpoints. This is a general precaution and is not vendor-confirmed guidance.

