# CVE-2026-114657: Grav information disclosure via Twig HTTP Basic credentials

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

CVE-2026-114657 · Severity: medium · CVSS 5.7 · Published 2026-10-22

Grav is a flat-file content management system used to build websites. A page author vulnerability allows malicious authors to steal HTTP Basic authentication credentials of site visitors, including administrators, by embedding code in page content that exfiltrates the credentials to an external server when the page is viewed.

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

## Quick answers

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

**How severe is CVE-2026-114657?** Medium severity, with a CVSS score of 5.7, published 22 October 2026.

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

**Is there a fix for CVE-2026-114657?** Yes: fixed in 2.2.5. Until then: Disable Twig processing in page content by setting security.twig_content.process_enabled to false if your site uses HTTP Basic authentication and cannot upgrade immediately. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

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

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

Disable Twig processing in page content by setting security.twig_content.process_enabled to false if your site uses HTTP Basic authentication and cannot upgrade immediately.

## Technical details

The Twig template sandbox in Grav 2.0.0 through 2.2.4 permits page content to access and print the request Uri object, which contains PHP_AUTH_USER and PHP_AUTH_PW from the Authorization header. An attacker with page authoring permissions can print these credentials via {{ uri }} or {{ uri.toarray.pass }} and embed the result in an inline style background-image URL to exfiltrate them to a remote server. This requires the site to use HTTP Basic authentication and either Grav 2.0.19+ with Twig processing enabled by default, or earlier versions with security.twig_content.process_enabled configured.

## Affected products

- Grav Grav 2.0.0 through 2.2.4

## Timeline

- 2026-10-07: disclosed
- 2026-10-22: advisory

## References

- [https://github.com/getgrav/grav/security/advisories/GHSA-c85g-q5w4-ff68](https://github.com/getgrav/grav/security/advisories/GHSA-c85g-q5w4-ff68)
- [https://www.vulncheck.com/advisories/grav-2.0.0-before-2.2.5-http-basic-credential-disclosure-via-twig-uri](https://www.vulncheck.com/advisories/grav-2.0.0-before-2.2.5-http-basic-credential-disclosure-via-twig-uri)

## 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 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)
- [Grav Clockwork profiler authentication bypass in loopback check](https://junglewise.ai/threats/cve-2026-109325-grav-from-2-0-22-before-2-1-7-contains-an-authentication-bypass)
