CVE-2026-72702 PUBLISHED

Grav CMS before 2.0.16 Origin Validation Bypass via Referer

Assigner: VulnCheck
Reserved: 10.08.2026 Published: 25.08.2026 Updated: 25.08.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 9.3

Product Status

Vendor getgrav
Product grav
Versions Default: unaffected
  • affected from 0 to 2.0.16 (excl.)
  • Version 2.0.16 is unaffected

Credits

  • alham-rizvi reporter

References

Problem Types

  • Origin Validation Error CWE