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.
Severity (CVSS)
| Base score | 4.8 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
| Provided by | CNA |
Weaknesses
- CWE-79 — CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| getgrav | grav | < 2.0.0-rc.9 |
References
- https://github.com/getgrav/grav/security/advisories/GHSA-pmf8-g7c8-7v54 (x_refsource_CONFIRM)
- https://github.com/getgrav/grav/commit/24fd6cbc438e12310b126d1176e7d7601203a6f2 (x_refsource_MISC)
- https://github.com/getgrav/grav/releases/tag/2.0.0-rc.9 (x_refsource_MISC)
Generated from the official CVE List on 11 Jul 2026 07:02 UTC.