# CVE-2026-112781: Grav information disclosure via form config directives

Source: https://junglewise.ai/threats/cve-2026-112781-grav-from-2-0-0-before-2-2-2-contains-an-information-disclosure  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-19. Updated: 2026-10-19  
License: CC BY 4.0 with a link back

CVE-2026-112781 · Severity: medium · CVSS 6.5 · Published 2026-10-19

Grav is a flat-file CMS that allows content editing through a web interface. An attacker with page-edit permissions can inject special directives into page forms to bypass security restrictions and read sensitive configuration values—such as encryption keys, plugin credentials, and database passwords—which are then exposed to all site visitors.

Technologies: [Getgrav Grav](https://junglewise.ai/threats/technologies/getgrav-grav-1). Vendors: [Getgrav](https://junglewise.ai/threats/vendors/getgrav).

## Quick answers

**Is CVE-2026-112781 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-112781 being exploited in the wild.

**How severe is CVE-2026-112781?** Medium severity, with a CVSS score of 6.5, published 19 October 2026.

**Which products and versions are affected?** Getgrav Grav 2.0.0 through 2.2.1.

**Is there a fix for CVE-2026-112781?** Yes: fixed in 2.2.2. Until then: Upgrade to Grav 2.2.2 or later. Until patched, restrict page-edit permissions to trusted users only and audit existing pages for injected config directives.</anigation>
<parameter name="timeline">[{"kind":"disclosed","at":"2026-10-05"},{"kind":"advisory","at":"2026-10-19"},{"kind":"patched","at":"2026-10-19","note":"Fixed in version 2.2.2"}] Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-112781 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-112781?** Check whether you run Getgrav Grav 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.

## How to fix

- Fixed in 2.2.2

Upgrade to Grav 2.2.2 or later. Until patched, restrict page-edit permissions to trusted users only and audit existing pages for injected config directives.</anigation>
<parameter name="timeline">[{"kind":"disclosed","at":"2026-10-05"},{"kind":"advisory","at":"2026-10-19"},{"kind":"patched","at":"2026-10-19","note":"Fixed in version 2.2.2"}]

## Technical details

The vulnerability exists in Blueprint dynamic directives, where config-*@ directives are not validated for provenance like data-*@ directives are. This allows page-authored forms to call Config::get() without filtering, bypassing the Twig sandbox's config_denied_paths redaction. An authenticated attacker with api.pages.write or admin.pages permission can inject these directives into frontmatter forms to disclose restricted configuration paths (security.salt, plugin credentials, Redis passwords) to unauthorized users.

## Affected products

- Getgrav Grav 2.0.0 through 2.2.1

## References

- [https://github.com/getgrav/grav/security/advisories/GHSA-8wwq-x3w5-fxmw](https://github.com/getgrav/grav/security/advisories/GHSA-8wwq-x3w5-fxmw)
- [https://www.vulncheck.com/advisories/grav-2.0.0-before-2.2.2-information-disclosure-via-form-config-directives](https://www.vulncheck.com/advisories/grav-2.0.0-before-2.2.2-information-disclosure-via-form-config-directives)

## Related threats

- [Grav authorization bypass in Clockwork profiler debugger](https://junglewise.ai/threats/cve-2026-117604-grav-from-1-7-53-3-before-1-7-53-6-contains-an-authorization)
- [Grav allowlist bypass in Flex form field renaming](https://junglewise.ai/threats/cve-2026-112780-grav-from-2-0-15-before-2-2-2-contains-an-allowlist-bypass)
- [Grav session cookie theft via Twig sandbox](https://junglewise.ai/threats/cve-2026-100671-grav-is-a-flat-file-cms-in-versions-2-0-19-through-2-0-24-and-in)
- [Grav sandbox escape via array filter](https://junglewise.ai/threats/cve-2026-100668-grav-2-0-0-through-2-0-24-contain-a-twig-content-sandbox-escape)
- [Grav may be vulnerable to SSRF attack via Twig Templates](https://junglewise.ai/threats/cve-2025-66844-grav-may-be-vulnerable-to-ssrf-attack-via-twig-templates)
