Description
Grav from 2.0.0 before 2.2.5 contains an information disclosure vulnerability that allows page authors to capture visitors' HTTP Basic credentials through Twig page content. Authors can print the request Uri object, which embeds PHP_AUTH_USER and PHP_AUTH_PW, inside an inline style background image to exfiltrate administrators' credentials to an external host.
Published: 2026-10-22
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: Credential Disclosure
Action: Immediate Patch
AI Analysis

Impact

The vulnerability allows a page author to capture HTTP Basic authentication credentials of site visitors by embedding the request Uri object into a Twig template. The request Uri contains PHP_AUTH_USER and PHP_AUTH_PW values, which can be emitted as an inline style background image. This allows exfiltration of administrator credentials to an external host, leading to a loss of confidentiality for authenticated users.

Affected Systems

Grav CMS versions 2.0.0 through 2.2.4 on any web server are affected. Upgrade to 2.2.5 or later eliminates the exposed request Uri handling.

Risk and Exploitability

The CVSS score of 6.9 indicates high risk. EPSS is not available and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a malicious page author or compromised theme that can inject Twig code containing the request Uri. This requires write access to templates but does not provide further code execution. Once triggered, victim credentials are sent to an attacker-controlled host via a simple HTTP request. The exploit is straightforward, making it an attractive target for attackers who can influence page content.

Generated by OpenCVE AI on October 22, 2026 at 05:43 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Grav to version 2.2.5 or newer, which removes the vulnerable template handling.
  • Restrict page author roles to prevent insertion of requestUri objects into Twig templates.
  • Disable HTTP Basic authentication for public users or enforce HTTPS and configure Grav to avoid exposing PHP_AUTH_USER and PHP_AUTH_PW to templates.

Generated by OpenCVE AI on October 22, 2026 at 05:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 22 Oct 2026 02:00:00 +0000

Type Values Removed Values Added
Description Grav from 2.0.0 before 2.2.5 contains an information disclosure vulnerability that allows page authors to capture visitors' HTTP Basic credentials through Twig page content. Authors can print the request Uri object, which embeds PHP_AUTH_USER and PHP_AUTH_PW, inside an inline style background image to exfiltrate administrators' credentials to an external host.
Title Grav 2.0.0 before 2.2.5 HTTP Basic Credential Disclosure via Twig Uri
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-200
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV3_1

{'score': 5.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-22T01:43:42.747Z

Reserved: 2026-10-21T21:59:05.256Z

Link: CVE-2026-114657

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-22T02:16:57.553

Modified: 2026-10-22T02:16:57.677

Link: CVE-2026-114657

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T08:30:03Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor