CVE-2026-72698: Grav CMS before 2.0.16 Information Disclosure via Twig Sandbox Bypass

Published Aug 25, 2026
·
Updated

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 configdeniedpaths restrictions.

Affected Software

1 affected component
Grav Grav CMS<2.0.16

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Grav CMS to a version that resolves this vulnerability.

    Fixed in 2.0.16
  2. Compensating control

    Ensure page content edit access is restricted/controlled (e.g., only trusted users can edit content) to reduce the ability to use Twig dot-notation to read sensitive configuration values.

Event History

Aug 25, 2026
CVE Published
via MITRE·01:30 AM
Data Sourced
via MITRE·01:30 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs page-content edit access in Grav CMS. They can use Twig templates with dot notation to read raw system, site, and theme configuration arrays.

2

What information could be exposed?

Sensitive configuration values stored in the affected arrays may be disclosed, including secrets such as cache credentials. The issue bypasses config_denied_paths restrictions during sandboxed Twig rendering.

3

Which deployments are affected?

Grav CMS versions before 2.0.16 are affected where a user with page-content editing access can submit or modify Twig-rendered content.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203