getgrav/grav · Duplicate Advisory: Grav: Stored CSS injection via Markdown image resize() bypasses prior media style sanitizers in Grav
Affects getgrav/gravSource GCVE Database
CVSS 4.8 Medium · fixed in 2.0.0 : update getgrav/grav when convenient.
Data as of 17 Sep 2026, 02:03 UTC
- Patch
- Available – fixed in 2.0.0
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:NWhat to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistgetgrav/grav | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
This vulnerability is fixed in Grav version 2.0.0. Users should upgrade to version 2.0.0 or later to remediate this issue. No other mitigation or temporary workaround is indicated.
Description
Grav CMS versions up to 2.0.0-rc.9 contain a stored CSS injection vulnerability via the Markdown image resize() media action. This flaw allows a lower-privileged content editor to inject crafted CSS into image style attributes, which are then rendered when viewed by higher-privileged users. The vulnerability enables UI redress and content manipulation attacks without requiring JavaScript execution. The issue is fixed in Grav 2.0.0.
References
- github.com/getgrav/grav/security/advisories/GHSA-ffmg-hfvg-jhg9 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-58657 (opens in a new tab)
- github.com/getgrav/grav/commit/6582166173bb8eb5869d96aea384e0e73777c94c (opens in a new tab)
- github.com/getgrav/grav/commit/e03d29aa0d3ece16d73c1ffccfa78df8bf5f28b8 (opens in a new tab)
- vulncheck.com/advisories/grav-stored-css-injection-via-markdown-image-resize-action (opens in a new tab)