---
id: GHSA-qh7h-6c7g-x8m6
title: >-
  Duplicate Advisory: Grav: Origin validation bypass in Uri::referrer() and
  Pages::referrerRoute() via unanchored prefix match
summary: >-
  Duplicate Advisory: Grav: Origin validation bypass in Uri::referrer() and
  Pages::referrerRoute() via unanchored prefix match
severity: critical
cvss: 5.4
cwe:
  - CWE-346
vendor: getgrav
product: getgrav/grav
ecosystem: composer
affected:
  - getgrav/grav < 2.0.16
published: '2026-08-25'
updated: '2026-09-17'
sourceUpdated: '2026-09-17T20:24:27Z'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-qh7h-6c7g-x8m6'
references:
  - url: 'https://github.com/getgrav/grav/security/advisories/GHSA-9ccq-2jfg-qw33'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-72702'
  - url: >-
      https://www.vulncheck.com/advisories/grav-cms-before-origin-validation-bypass-via-referer
  - url: 'https://github.com/advisories/GHSA-qh7h-6c7g-x8m6'
tags:
  - ghsa
  - composer
ingestedAt: '2026-09-17T20:28:02.780Z'
---

## Overview

### Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-9ccq-2jfg-qw33. This link is maintained to preserve external references.

### Original Description
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.

## Affected packages

- `getgrav/grav < 2.0.16`

## Remediation

Refer to the advisory for the patched release.
