Vulnerability · Published Aug 25, 2026 · Assigned by VulnCheck
CVE-2026-72702Grav CMS before 2.0.16 Origin Validation Bypass via Referer
Medium 5.4
In plain English
A medium-severity security flaw in grav from getgrav. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | getgrav/grav | 2.0.16 | GHSA-9ccq-2jfg-qw33 |
Affected products (as reported)
Weakness: CWE-346 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
References
- GitHub Security Advisory (GHSA-9ccq-2jfg-qw33) vendor-advisory
- VulnCheck Advisory: Grav CMS before 2.0.16 Origin Validation Bypass via Referer third-party-advisory