CVE-2026-72702

Medium

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.

SeverityMedium
CVSS5.4
Exploit probability—
ProductGetgrav/grav
PublishedAug 25, 2026
First seenAug 25, 2026
Weakness typeCWE-346CWE-346

How to fix

Update
  • getgrav/grav2.0.16 or later

Affected products

ProductAffected versionsFixed in
getgrav/gravPackagistv < 2.0.162.0.16

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.