Skip to content
OpenAdvisories
Medium · 5.4 CVE-2026-75834 EUVD-2026-60598GHSA-993v-76jg-67xrGHSA-q2j8-x8hf-63ch

Grav before 2.0.14 Stored XSS via Invalid UTF-8 Byte

Published Aug 18, 2026 · Updated Oct 8, 2026 · Assigned by VulnCheck

Description

Grav before 2.0.14 contains a stored cross-site scripting vulnerability in the Security::detectXss() function (system/src/Grav/Common/Security.php). All XSS detection patterns use the PCRE /u (UTF-8) modifier, so a single invalid UTF-8 byte anywhere in page content causes preg_match() to return false for every pattern, silently bypassing the save-time XSS safety gate (Validation::checkSafety()). An authenticated attacker with page-edit permissions (without the security.xss_whitelist privilege) can store malicious JavaScript that executes in the browser of a visitor who views the affected page.

Affected products

VendorProductAffectedFixed
getgrav grav < 2.0.14 2.0.14

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist getgrav/grav < 2.0.14 2.0.14 GHSA-q2j8-x8hf-63ch

References