Description
Grav Admin before 2.0.20 fails to sanitize output from marked.parse() before injecting it into the DOM via Svelte's {@html} directive in MarkdownEditor and MarkdownModal components. Attackers can inject javascript: URI schemes in plugin or theme changelogs to execute arbitrary code in authenticated admin sessions without requiring site access.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| getgrav | grav | < 2.0.20 | 2.0.20 |
References
- GitHub Security Advisory (GHSA-752r-88j4-vxm3) vendor-advisory
- VulnCheck Advisory: Grav Admin before 2.0.20 Cross-Site Scripting via marked.js third-party-advisory