{"id":"CVE-2026-72832","published":"2026-08-14T11:35:38Z","modified":"2026-11-20T12:29:36Z","title":"Grav before 2.0.13 Stored XSS via quoted-attribute bypass","vendor":"getgrav","product":"grav","tier":"tail","description":{"text":"Grav versions 1.5.2 before 2.0.13 contain a stored cross-site scripting vulnerability in the Security::detectXss() function (system/src/Grav/Common/Security.php). The event-handler scan is anchored at `<` and uses `[^>]*?`, which cannot cross the first literal `>`; when a `>` appears inside a quoted attribute value the browser keeps the tag open and parses a subsequent event handler (e.g. onerror), so the detector and browser disagree. A page editor without admin.super privileges can save page content such as `<img src=x title=\">\" onerror=alert(document.domain)>`, which is accepted, stored, and executed in the site origin when any visitor (including unauthenticated users) views the page. Fixed in 2.0.13.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00314,"percentile":0.16808,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-269c-h76q-8cxw","tags":["vendor-advisory"]},{"url":"https://github.com/getgrav/grav/commit/ad9709f865b09b68798fb1ac375b484a8cc1d892","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/grav-before-stored-xss-via-quoted-attribute-bypass","tags":["third-party-advisory"]}],"priority":{"score":7.1,"factors":[{"name":"EPSS percentile","points":3.36},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav","versions":[">= 1.5.2, < 2.0.13"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-14T14:36:40.105736Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"getgrav/grav","vulnerableRanges":[">=1.5.2, <2.0.13"],"patched":["2.0.13"],"from":["GHSA-269c-h76q-8cxw"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-58646","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-getgrav-grav-cve-2024-28117","parents":[{"from":"CVE-2026-69088","to":"CVE-2026-72832","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"2.0.11","toFixed":"2.0.13","daysApart":11},{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Data/Blueprint.php"],"commits":["https://github.com/getgrav/grav/commit/446d7f8f255918c8234634fe1dc2c9c77a0c673e","https://github.com/getgrav/grav/commit/ad9709f865b09b68798fb1ac375b484a8cc1d892"],"basis":"shared function","functions":["dynamicData"]}]},{"from":"CVE-2024-28117","to":"CVE-2026-72832","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Twig/Twig.php"],"commits":["https://github.com/getgrav/grav/commit/de1ccfa12dbcbf526104d68c1a6bc202a98698fe","https://github.com/getgrav/grav/commit/ad9709f865b09b68798fb1ac375b484a8cc1d892"],"basis":"shared function","functions":["setTemplate"]}]},{"from":"CVE-2024-28118","to":"CVE-2026-72832","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Twig/Twig.php"],"commits":["https://github.com/getgrav/grav/commit/de1ccfa12dbcbf526104d68c1a6bc202a98698fe","https://github.com/getgrav/grav/commit/ad9709f865b09b68798fb1ac375b484a8cc1d892"],"basis":"shared function","functions":["setTemplate"]}]},{"from":"CVE-2024-28119","to":"CVE-2026-72832","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Twig/Twig.php"],"commits":["https://github.com/getgrav/grav/commit/de1ccfa12dbcbf526104d68c1a6bc202a98698fe","https://github.com/getgrav/grav/commit/ad9709f865b09b68798fb1ac375b484a8cc1d892"],"basis":"shared function","functions":["setTemplate"]}]},{"from":"CVE-2026-58657","to":"CVE-2026-72832","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Twig/Twig.php"],"commits":["https://github.com/getgrav/grav/commit/6582166173bb8eb5869d96aea384e0e73777c94c","https://github.com/getgrav/grav/commit/e03d29aa0d3ece16d73c1ffccfa78df8bf5f28b8","https://github.com/getgrav/grav/commit/ad9709f865b09b68798fb1ac375b484a8cc1d892"],"basis":"shared function","functions":["processPage"]}]},{"from":"CVE-2026-11430","to":"CVE-2026-72832","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/defines.php","system/src/Grav/Common/Data/Blueprint.php"],"commits":["https://github.com/getgrav/grav/commit/694f1dae06d9061bbf0669c4291e3b206f998d71","https://github.com/getgrav/grav/commit/ad9709f865b09b68798fb1ac375b484a8cc1d892"],"basis":"shared function","functions":["dynamicData"]}]}],"children":[{"from":"CVE-2026-72832","to":"CVE-2026-64850","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Data/Blueprint.php"],"commits":["https://github.com/getgrav/grav/commit/acffa34cbb0787fee87c609e0d6289e904fee33c","https://github.com/getgrav/grav/commit/ad9709f865b09b68798fb1ac375b484a8cc1d892"],"basis":"shared function","functions":["dynamicData"]}]}],"packageHistory":[{"cve":"CVE-2026-69088","published":"2026-08-03","fixed":"2.0.11","kev":false},{"cve":"CVE-2026-69089","published":"2026-08-03","fixed":"2.0.11","kev":false},{"cve":"CVE-2026-72819","published":"2026-08-14","fixed":"2.0.13","kev":false},{"cve":"CVE-2026-72832","published":"2026-08-14","fixed":"2.0.13","kev":false},{"cve":"CVE-2026-75834","published":"2026-08-18","fixed":"2.0.14","kev":false},{"cve":"CVE-2026-75837","published":"2026-08-18","fixed":"2.0.14","kev":false},{"cve":"CVE-2026-74907","published":"2026-08-18","fixed":"2.0.15","kev":false}],"package":"Packagist:getgrav/grav"}}