GHSA-9ccq-2jfg-qw33: Grav: Origin validation bypass in Uri::referrer() and Pages::referrerRoute() via unanchored prefix match
lowvulnerability
security
Summary
Grav CMS has a security flaw in how it checks whether a web request's Referer header (the page the user came from) belongs to the same website. The code uses `str_starts_with()` to compare the Referer against the site's root URL, but without checking for a boundary character (like a slash) after the match. This allows an attacker to register a domain like `example.com.attacker.tld` that starts with the victim's domain name and bypass the origin validation check, potentially leading to unauthorized actions.
Vulnerability Details
EPSS (30-day exploit probability)
EPSS: 0.1%
Patch Available
Yes
Disclosure Date
September 17, 2026
Classification
Attack SophisticationTrivial
Affected Packages
getgrav/grav@<= 2.0.15 (fixed: 2.0.16)
Monthly digest — independent AI security research
Original source: https://github.com/advisories/GHSA-9ccq-2jfg-qw33
First tracked: September 17, 2026 at 08:00 PM
Classified by LLM (prompt v3) · confidence: 95%