Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-114657 Overview
CVE-2026-114657 is an information disclosure vulnerability in Grav CMS versions 2.0.0 through 2.2.4. The flaw allows page authors to capture visitors' HTTP Basic authentication credentials through Twig page content. An author can print the request Uri object, which embeds PHP_AUTH_USER and PHP_AUTH_PW, inside an inline CSS background image to exfiltrate credentials to an attacker-controlled host. The vulnerability is categorized under CWE-200: Exposure of Sensitive Information and affects administrators who authenticate against Grav instances via HTTP Basic.
Critical Impact
Low-privileged page authors can harvest administrator HTTP Basic credentials by embedding Twig expressions that leak the full request URI to external hosts.
Affected Products
- Grav CMS 2.0.0
- Grav CMS versions up to and including 2.2.4
- Grav instances deployed behind HTTP Basic authentication
Discovery Timeline
- 2026-10-22 - CVE-2026-114657 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-114657
Vulnerability Analysis
Grav renders page content through the Twig templating engine, which gives page authors access to runtime objects including the request Uri. The Uri object exposes raw request properties such as PHP_AUTH_USER and PHP_AUTH_PW when the site sits behind HTTP Basic authentication. Twig does not restrict authors from printing these properties into page markup. An author can therefore render an administrator's credentials inline whenever a privileged user visits the page.
Because Twig output appears within the HTML response, authors can place leaked data inside CSS url() directives that resolve to attacker-controlled servers. The browser fetches the external resource and transmits the embedded credentials in the request URL. This converts an authoring privilege into a credential-harvesting primitive against higher-privileged accounts.
Root Cause
The root cause is unrestricted exposure of request-scoped authentication data to the Twig rendering context. Grav exposes the full Uri object, including credentials parsed from HTTP Basic headers, without filtering sensitive fields before page templates render.
Attack Vector
An authenticated user with page-authoring rights crafts a Twig expression that reads the Uri object and embeds the resulting string into an inline style attribute. When an administrator authenticated via HTTP Basic loads the page, the browser issues an outbound request to the attacker's host carrying the credentials in the URL path or query string. The attacker reads the credentials from standard web server logs.
Technical details are published in the GitHub Security Advisory GHSA-c85g-q5w4-ff68 and the VulnCheck Advisory on Grav.
Detection Methods for CVE-2026-114657
Indicators of Compromise
- Outbound HTTP requests from administrator browsers to unexpected external domains referenced in CSS url() directives.
- Page content containing Twig expressions that reference the uri object, PHP_AUTH_USER, or PHP_AUTH_PW.
- Markdown or Twig templates authored by non-admin users that include inline style attributes with external image URLs.
Detection Strategies
- Audit all Grav page content and templates for Twig constructs that print the request Uri or environment variables.
- Review web server access logs for referer patterns indicating outbound asset loads originating from the Grav admin interface.
- Monitor DNS and proxy logs for lookups to unfamiliar domains originating from administrator workstations after visits to Grav-authored pages.
Monitoring Recommendations
- Enable content review workflows so that Twig-enabled page edits require approval before publication.
- Log and alert on changes to pages authored by low-privileged accounts, particularly edits introducing inline style attributes.
- Capture outbound HTTP metadata from administrator sessions and flag requests containing credential-like query parameters.
How to Mitigate CVE-2026-114657
Immediate Actions Required
- Upgrade Grav CMS to version 2.2.5 or later, which filters sensitive fields from the Twig Uri object.
- Rotate all administrator credentials used with HTTP Basic authentication on affected Grav instances.
- Review existing page content for malicious Twig expressions and remove any references to the request Uri object.
Patch Information
Grav version 2.2.5 remediates CVE-2026-114657. Refer to the GitHub Security Advisory GHSA-c85g-q5w4-ff68 for the official fix and release notes.
Workarounds
- Disable Twig processing in page content for untrusted authors until the patch is applied.
- Replace HTTP Basic authentication with session-based authentication so credentials are not reflected in the request Uri.
- Restrict page-authoring privileges to fully trusted accounts and remove authoring rights from low-trust users.
# Upgrade Grav via the bundled CLI utility
bin/gpm selfupgrade
bin/gpm update
# Verify installed Grav version is 2.2.5 or later
bin/grav --version
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

