Skip to content
OpenAdvisories
Medium · 4.8 CVE-2026-55890 EUVD-2026-42946GHSA-pmf8-g7c8-7v54

Grav: Stored CSS injection via Markdown image ?style=… reaches MediaObjectTrait::style()

Published Jul 10, 2026 · Updated Jul 10, 2026 · Assigned by GitHub_M

Description

Grav is a file-based Web platform. Prior to 2.0.0-rc.9, Grav's incomplete fix for stored XSS through the Markdown media attribute action (CVE-2026-42841) leaves the sibling MediaObjectTrait::style method reachable through the same Markdown excerpt-action pipeline, allowing an editor to save Markdown image style parameters that are written into the rendered img style attribute without sanitization. This issue is fixed in version 2.0.0-rc.9.

Affected products

VendorProductAffectedFixed
getgrav grav < 2.0.0-rc.9 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist getgrav/grav < 2.0.0-rc.9 2.0.0-rc.9 GHSA-pmf8-g7c8-7v54

References