CVE-2026-130742 Grav 2.0.0 before 2.2.18 Object Deletion via Flex Sort Field
- Exploited in the wild
- Not known
- Fix
- 2.2.18
What is CVE-2026-130742?
CVE-2026-130742 is a high-severity vulnerability in getgrav grav, published on 18 Nov 2026.
Official description
Grav 2.0.0 before 2.2.18 resolves Flex sort and filter field names by first calling them as public methods, so a field named delete invokes FlexObject::delete() without any permission check. Authenticated users with only list access can send GET /api/v1/flex-objects/user-accounts?sort=delete requests to delete every account, then use the reopened API first-run setup to create a super admin.
Weakness: CWE-470
Which versions are affected by CVE-2026-130742?
How do I fix CVE-2026-130742?
Upgrade getgrav grav to 2.2.18 or later. The advisory says that version fixes it.
Is CVE-2026-130742 being exploited?
There is no known exploitation of CVE-2026-130742 in the wild and no public exploit code.
Sources
Also known as GHSA-679v-ch4q-94qm, GHSA-q88m-rfpx-2w96.