Skip to content
OpenAdvisories
Medium · 5.4 CVE-2026-72702 EUVD-2026-65216GHSA-9ccq-2jfg-qw33GHSA-qh7h-6c7g-x8m6

Grav CMS before 2.0.16 Origin Validation Bypass via Referer

Published Aug 25, 2026 · Updated Oct 8, 2026 · Assigned by VulnCheck

Description

Grav CMS before 2.0.16 contains an origin validation bypass in the Uri::referrer() and Pages::referrerRoute() methods, which validate the Referer header using an unanchored string prefix match (str_starts_with($referrer, $base)) with no trailing delimiter. An attacker who controls a domain that begins with the victim site's origin (e.g. https://example.com.attacker.tld) can send a request with such a Referer to be treated as same-origin, bypassing the Referer-based origin check.

Affected products

VendorProductAffectedFixed
getgrav grav < 2.0.16 2.0.16

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist getgrav/grav < 2.0.16 2.0.16 GHSA-9ccq-2jfg-qw33

References