P2 · HighCVSS 9.8EPSS 0.3%
Grav 2.0.0 before 2.2.18 Twig Injection via Media Metadata and File Names
- CVE-2026-130735
- GHSA-mc27-cghq-x54v
- EUVD-2026-128807
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.
Text from the CVE.org record.
Recommendation
getgrav grav
- If you run a version from 2.0.0 to before 2.2.18update to 2.2.18 or laterMinor version change: check the release notes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
getgrav grav
Affected versions Fixed in from 2.0.0 to before 2.2.18 2.2.18
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.