CVE-2026-72702: Grav CMS before 2.0.16 Origin Validation Bypass via Referer

Published Aug 25, 2026
·
Updated

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 (strstartswith($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 Software

1 affected component
Grav Grav CMS<2.0.16

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Grav CMS to a version that resolves this vulnerability.

    Fixed in 2.0.16
  2. Compensating control

    Mitigate the Referer-based origin validation bypass by deploying a control that does not trust Referer headers from attacker-controlled subdomains (e.g., block/deny requests where the Referer host is not exactly the victim origin) until all instances are upgraded.

Event History

Aug 25, 2026
CVE Published
via MITRE·01:30 AM
Data Sourced
via MITRE·01:30 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What does an attacker need to exploit this issue?

The attacker needs to control a domain whose URL begins with the victim site's origin, such as https://example.com.attacker.tld. They can then send a request with that domain in the Referer header so it is treated as same-origin.

2

Which installations are affected?

Grav CMS versions before 2.0.16 are affected. The issue applies where the Uri::referrer() or Pages::referrerRoute() Referer-based origin validation is used.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203