BuzzPHP
LightDarkSystem

Grav: detectXss() misses an event-handler attribute after an unpaired quote in an unquoted attribute value, giving stored XSS

Critical severity. Published 17 September 2026. Update getgrav/grav to 2.0.15 or later: composer update getgrav/grav.

Which versions are affected?

PackageAffected versionsFixed in
getgrav/grav (opens in a new tab)<= 2.0.142.0.15

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show getgrav/grav
composer audit

Advisory details

SeverityCriticalCVSS 8.7
Published
Updated
CVECVE-2026-75828 (opens in a new tab)
GHSAGHSA-vfmf-q6x9-cw96 (opens in a new tab)
WeaknessCWE-79

What the advisory says

Affected versions and vulnerable location

- Confirmed on grav core at 78ebfc1 (tag 2.0.13). - Detector: system/src/Grav/Common/Security.php:290, the onevents regex, run via patternMatches() (:315-330). - The onevents pattern at HEAD: "'])?(?:[\s\x00-\x20"'/]|"[^"]"|'[^']')on\s[a-z]+\s=iu - Sole save-time guard for non-super content: Validation::checkSafety() (system/src/Grav/Common/Data/Validation.php:160 scalars, :165 arrays), invoked per field from BlueprintSchema::validate - Validation::checkSafety (system/src/Grav/Common/Data/BlueprintSchema.php:248). security.xsswhitelist: [admin.super] exempts only super-admins (Validation.php:148).

Root cause (distinct from GHSA-269c)

Source: GHSA-vfmf-q6x9-cw96 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories