---
id: CVE-2026-114657
title: Grav 2.0.0 before 2.2.5 HTTP Basic Credential Disclosure via Twig Uri
summary: >-
  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…
severity: medium
cvss: 5.7
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-200
vendor: getgrav
product: grav
affected:
  - grav >= 2.0.0 < 2.2.5
published: '2026-10-22'
updated: '2026-10-22'
sourceUpdated: '2026-10-22T01:43:42.747Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-114657'
references:
  - url: 'https://github.com/getgrav/grav/security/advisories/GHSA-c85g-q5w4-ff68'
    label: GitHub Security Advisory (GHSA-c85g-q5w4-ff68)
  - url: >-
      https://www.vulncheck.com/advisories/grav-2.0.0-before-2.2.5-http-basic-credential-disclosure-via-twig-uri
    label: >-
      VulnCheck Advisory: Grav 2.0.0 before 2.2.5 HTTP Basic Credential
      Disclosure via Twig Uri
tags:
  - cve.org
ingestedAt: '2026-10-22T02:23:25.182Z'
---

## Overview

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.

## Affected

- `grav >= 2.0.0 < 2.2.5`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
