Skip to main content
← All vulnerabilities
CVE-2026-75834GHSA-Q2J8-X8HF-63CH

Grav before 2.0.14 Stored XSS via Invalid UTF-8 Byte

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.14
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • getgrav grav

    fixed in 2.0.14

  • getgrav/gravPackagist

    fixed in 2.0.14

References 2

GitHub · getgrav/grav

vulncheck.com