Skip to main content
VulnerabilityPublished Updated

getgrav/grav · Duplicate Advisory: Grav: Stored CSS injection via Markdown image resize() bypasses prior media style sanitizers in Grav

Affects getgrav/gravSource GCVE Database

0

CVSS 4.8 Medium · fixed in 2.0.0 : update getgrav/grav when convenient.

Data as of 17 Sep 2026, 02:03 UTC

CVSS 3.1 base score
4.8Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

What to do

Affected software

ProductAffectedFixed in
Packagistgetgrav/gravAffected
  • =2.0.0-rc.9
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

Community reviews

Loading reviews…