Grav 2.0.0 before 2.2.18 Twig Injection via Media Metadata and File Names
- State
- Published
- Severity
- 9.3 Critical
- Published
- Nov 18, 2026
- Updated
- Nov 18, 2026
- Reserved
- Nov 17, 2026
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.
| Product | Versions |
|---|---|
| grav getgrav | 2.0.0 to before 2.2.18 Affected2.2.18 Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 9.3 Critical | VulnCheck | |
| 3.1 | 9.8 Critical | VulnCheck |
Weaknesses
- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- GitHub Security Advisory (GHSA-jc8q-6vcj-4x25)Vendor Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.