{"id":"CVE-2026-72702","title":"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 …","summary":"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 …","severity":"medium","cvss":5.4,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","cwe":["CWE-346"],"vendor":"getgrav","product":"grav","affected":["grav < 2.0.16"],"patched":["getgrav/grav 2.0.16"],"published":"2026-08-25","updated":"2026-10-12","sourceUpdated":"2026-10-12T15:10:00.207","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-72702","references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-9ccq-2jfg-qw33","label":"disclosure@vulncheck.com"},{"url":"https://www.vulncheck.com/advisories/grav-cms-before-origin-validation-bypass-via-referer","label":"disclosure@vulncheck.com"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72702"},{"url":"https://github.com/advisories/GHSA-9ccq-2jfg-qw33"}],"tags":["nvd","cve.org","exploit-available","ghsa","composer"],"epss":0.00149,"epssPercentile":0.04068,"aliases":["GHSA-9ccq-2jfg-qw33"],"ecosystem":"composer","exploitAvailable":true,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-08-25T16:02:36.978586Z"},"ingestedAt":"2026-09-17T20:28:02.779Z","slug":"CVE-2026-72702","body":"## Overview\n\nGrav 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Package advisory (CVE-2026-72702)\n\nAffected packages:\n\n- `getgrav/grav <= 2.0.15`\n\nPatched in:\n\n- `getgrav/grav 2.0.16`\n\nSource: https://github.com/advisories/GHSA-9ccq-2jfg-qw33","depth":"twilight","depthScore":42,"depthScoreParts":{"impact":29.7,"likelihood":0,"exploitation":12,"ransomware":0},"changes":[{"seq":218163,"id":"CVE-2026-72702","ts":1791478457087,"field":"exploit_available","old":"false","new":"true"},{"seq":218162,"id":"CVE-2026-72702","ts":1791478457087,"field":"cvss","old":null,"new":"5.4"},{"seq":218161,"id":"CVE-2026-72702","ts":1791478457087,"field":"severity","old":"low","new":"medium"}]}