CVE-2026-92917: Grav 2.0.0-rc.1 through 2.0.21 Configuration Disclosure via print_r

Published Sep 17, 2026
·
Updated

Grav is a flat-file CMS. In versions 2.0.0-rc.1 through 2.0.21, the Twig content sandbox fails to restrict the dump and serialize filters (printr, vardump, jsonencode, yamlencode, string): GravExtension::assertSandboxDumpSafe() determines sandbox state by calling SandboxExtension::isSandboxed() without a Source argument, which reports only the global sandbox flag that Grav never enables, so the guard added in GHSA-mc5q-6hpj-rp7j never executes. As a result, an authenticated user with page-edit rights can render {{ config|printr }} in page content with Twig processing enabled and dump Grav's entire merged configuration — printr reflects the real Config object held in a private property of the SandboxConfig facade, bypassing its path redaction — exposing plugin secrets such as SMTP credentials, API tokens, webhook secrets and cache backend passwords. Grav 1.7 is not affected because it ships no Twig content sandbox. The issue is fixed in 2.0.22, where the affected filters are registered with Twig's needsissandboxed flag.

Affected Software

1 affected component
Grav Grav>=2.0.0-rc.1<=2.0.21

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Grav to a version that resolves this vulnerability.

    Fixed in 2.0.22Patch GHSA-mc5q-6hpj-rp7j

Event History

Sep 17, 2026
CVE Published
via MITRE·11:16 AM
Data Sourced
via MITRE·11:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An authenticated user who has page-edit rights can exploit it, provided they can place Twig content in page content where Twig processing is enabled. No additional privileges or user interaction are required.

2

What information could be exposed?

An attacker can dump Grav's merged configuration, including plugin secrets such as SMTP credentials, API tokens, webhook secrets, and cache backend passwords. The print_r output can access the real Config object and bypass the SandboxConfig facade's path redaction.

3

Which deployments are affected?

Grav versions 2.0.0-rc.1 through 2.0.21 are affected. Grav 1.7 is not affected, and the issue is fixed in Grav 2.0.22.

4

What should be done if an affected system may have been exposed?

Upgrade to Grav 2.0.22. Because configuration output may include credentials and secrets, rotate any SMTP credentials, API tokens, webhook secrets, and cache backend passwords that could have been available in the merged configuration.

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