Uri::referrer() · Duplicate Advisory: Grav: Origin validation bypass
Affects getgrav/gravSource GCVE Database
CVSS 5.4 Medium · fixed in 2.0.16 : update getgrav/grav when convenient.
Data as of 18 Sep 2026, 01:28 UTC
- Patch
- Available – fixed in 2.0.16
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NWhat to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistgetgrav/grav | Affected– | Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Grav CMS version 2.0.16. Users should upgrade to version 2.0.16 or later to remediate this vulnerability. No additional mitigation steps are indicated.
Description
Grav CMS versions before 2.0.16 have an origin validation bypass vulnerability in the Uri::referrer() and Pages::referrerRoute() methods. The issue arises because these methods validate the Referer header using an unanchored prefix match without a trailing delimiter. This allows an attacker controlling a domain that starts with the victim's origin to bypass the Referer-based origin check.