CVE-2026-72698 Grav CMS before 2.0.16 Information Disclosure via Twig Sandbox Bypass
Content editors can bypass Twig sandbox restrictions to read sensitive configuration secrets 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
- Available
What is CVE-2026-72698?
CVE-2026-72698 is a high-severity vulnerability in getgrav grav, published on 25 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Grav CMS before 2.0.16 fails to filter system, site, and theme configuration arrays in sandboxed Twig renders, allowing content editors to read sensitive configuration values. Attackers with page-content edit access can access raw configuration arrays including secrets like cache credentials by using dot notation in Twig templates, bypassing the config_denied_paths restrictions.
Weakness: CWE-200
Which versions are affected by CVE-2026-72698?
2 open source packages ship an affected version, including getgrav/grav.
| Package | Affected | Fixed in |
|---|---|---|
getgrav/grav Packagist | All versions | 2.0.16 |
getgrav/grav Packagist | All versions | 2.0.16 |
How do I fix CVE-2026-72698?
Upgrade getgrav/grav to 2.0.16 or later.
Is CVE-2026-72698 being exploited?
There is no known exploitation of CVE-2026-72698 in the wild and no public exploit code.
Sources
Also known as GHSA-p597-crqc-m349.