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.
Problem types
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Product status
References
github.com/...v/grav/security/advisories/GHSA-pmf8-g7c8-7v54
github.com/...v/grav/security/advisories/GHSA-pmf8-g7c8-7v54
github.com/...ommit/24fd6cbc438e12310b126d1176e7d7601203a6f2
github.com/getgrav/grav/releases/tag/2.0.0-rc.9