Vulnerability in Getgrav Grav

CVE-2026-72702

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.

CVSS v3 metric

CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-72702?
CVE-2026-72702 is a medium-severity vulnerability in Getgrav Grav, classified under Origin Validation Error. CVSS score: 5.4/10. Published 2026-08-25.
How severe is CVE-2026-72702?
Medium severity. CVSS v3 base score is 5.4 out of 10.