# Grav incomplete Twig sandbox denylist information disclosure

Source: https://junglewise.ai/threats/grav-incomplete-twig-sandbox-denylist-information-disclosure-e903bd3b  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-25. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

Severity: high · CVSS 7.5 · Published 2026-08-25

Grav is a flat-file content management system that allows administrators to optionally enable Twig template access in user-editable pages. When this feature is enabled, an incomplete security allowlist fails to block access to sensitive system configuration values such as Redis passwords. An attacker with page-editing permissions can exploit this to extract secrets stored in the system configuration.

Technologies: [Grav](https://junglewise.ai/threats/technologies/grav), [getgrav/grav (Packagist)](https://junglewise.ai/threats/technologies/getgrav-grav). Vendors: [Grav](https://junglewise.ai/threats/vendors/grav), [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** High severity, with a CVSS score of 7.5, published 25 August 2026.

**Which products and versions are affected?** Grav <2.0.16; getgrav/grav (Packagist) < 2.0.16.

**Is there a fix for This vulnerability?** A patch was published on 2026-08-10: Version 2.0.16 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is This vulnerability attacked?** It is attacked over the network.

**Am I affected?** Check whether you run Grav or getgrav/grav (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

Grav versions before 2.0.16 ship an incomplete default denylist in the Twig sandbox configuration (twig_sandbox.config_denied_paths in system/config/security.yaml). The denylist includes 'plugins', 'streams', 'security', 'backups', and 'scheduler' but omits 'system', which contains sensitive values like system.cache.redis.password. When config_access is enabled (a non-default setting intended to safely expose low-sensitivity values), any user with page-edit permission can call config.get() or config.toArray() in Twig templates to retrieve secrets. This is a follow-up gap to the fix for GHSA-j274-39qw-32c9. The patch in version 2.0.16 adds 'system' to the denylist.

## Affected products

- Grav Grav <2.0.16

## Timeline

- 2026-08-25: disclosed
- 2026-08-10: patched: Version 2.0.16 released

## References

- [https://github.com/getgrav/grav/security/advisories/GHSA-xjw5-q542-3vmr](https://github.com/getgrav/grav/security/advisories/GHSA-xjw5-q542-3vmr)

## Related threats

- [Grav allowlist bypass in Flex form processing](https://junglewise.ai/threats/cve-2026-116019-grav-2-0-15-before-2-2-13-contains-an-allowlist-bypass)
- [Grav improper access control in FlexDirectory::dynamicFlexField()](https://junglewise.ai/threats/cve-2026-114660-grav-from-2-0-0-before-2-2-5-contains-an-improper-access-control)
- [Grav information disclosure via Twig HTTP Basic credentials](https://junglewise.ai/threats/cve-2026-114657-grav-from-2-0-0-before-2-2-5-contains-an-information-disclosure)
- [Grav image pixel limit bypass allows resource exhaustion](https://junglewise.ai/threats/cve-2026-112782-grav-1-7-53-before-1-7-53-5-and-2-0-0-rc-8-before-2-2-2-contains)
- [Grav information disclosure via nested Git repositories](https://junglewise.ai/threats/cve-2026-109326-grav-before-2-1-7-contains-an-information-disclosure)
