Duplicate Advisory: Grav: Origin validation bypass in Uri::referrer() and Pages::referrerRoute() via unanchored prefix match
Grav CMS versions before 2.0.16 have an origin validation bypass vulnerability in the Uri::referrer() and Pages::referrerRoute() methods. The issue arises because these methods validate the Referer header using an unanchored prefix match without a trailing delimiter. This allows an attacker controlling a domain that starts with the victim's origin to bypass the Referer-based origin check.
AI Analysis
Technical Summary
The vulnerability in Grav CMS prior to version 2.0.16 involves improper origin validation in the Uri::referrer() and Pages::referrerRoute() methods. These methods use an unanchored string prefix match (str_starts_with) to validate the Referer header, which does not require a trailing delimiter. Consequently, an attacker who controls a domain beginning with the victim site's origin (e.g., https://example.com.attacker.tld) can craft a Referer header that is incorrectly treated as same-origin, bypassing the intended origin check.
Potential Impact
This vulnerability allows an attacker to bypass the Referer-based origin validation, potentially enabling unauthorized actions that rely on origin checks. The CVSS score of 5.4 indicates a medium severity impact with low confidentiality and integrity impact and no availability impact. There is no evidence of known exploits in the wild.
Mitigation Recommendations
A fix is available in Grav CMS version 2.0.16. Users should upgrade to version 2.0.16 or later to remediate this vulnerability. No additional mitigation steps are indicated.
Duplicate Advisory: Grav: Origin validation bypass in Uri::referrer() and Pages::referrerRoute() via unanchored prefix match
Description
Grav CMS versions before 2.0.16 have an origin validation bypass vulnerability in the Uri::referrer() and Pages::referrerRoute() methods. The issue arises because these methods validate the Referer header using an unanchored prefix match without a trailing delimiter. This allows an attacker controlling a domain that starts with the victim's origin to bypass the Referer-based origin check.
CVSS v3.1
Score 5.4medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Grav CMS prior to version 2.0.16 involves improper origin validation in the Uri::referrer() and Pages::referrerRoute() methods. These methods use an unanchored string prefix match (str_starts_with) to validate the Referer header, which does not require a trailing delimiter. Consequently, an attacker who controls a domain beginning with the victim site's origin (e.g., https://example.com.attacker.tld) can craft a Referer header that is incorrectly treated as same-origin, bypassing the intended origin check.
Potential Impact
This vulnerability allows an attacker to bypass the Referer-based origin validation, potentially enabling unauthorized actions that rely on origin checks. The CVSS score of 5.4 indicates a medium severity impact with low confidentiality and integrity impact and no availability impact. There is no evidence of known exploits in the wild.
Mitigation Recommendations
A fix is available in Grav CMS version 2.0.16. Users should upgrade to version 2.0.16 or later to remediate this vulnerability. No additional mitigation steps are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-qh7h-6c7g-x8m6
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- CRITICAL
- Cvss Version
- 3.1
Threat ID: 6aac8df355bf5e2cf5490208
Added to database: 09/18/2026, 01:03:47 UTC
Last enriched: 09/18/2026, 01:28:29 UTC
Last updated: 09/18/2026, 01:28:29 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.