Grav XSS via Twig injection in uploaded media metadata
getgrav grav
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| getgrav grav |
|
|
Original description
Grav from 2.0.0 before 2.2.18 contains a Twig injection vulnerability that allows media-only accounts and anonymous uploaders to execute Twig by placing delimiters in image titles, alt text, class, id, or file names. Attackers can combine injected Twig with the autoescape tag to serve script to every page visitor, including super admins, or expose unpublished page content.
From the CVE record · VulnCheck