Grav 2.0.0 before 2.2.18 Twig Injection via Media Metadata and File Names
Fix:the vendor lists fixed versions See versions ↓
getgrav · grav
A Twig template injection flaw in Grav's handling of media metadata and file names (affecting versions from 2.0.0 before 2.2.18) lets attackers embed Twig delimiters in image titles, alt text, class and id attributes, or uploaded file names. An attacker with only media-upload privileges, or even anonymous upload access, can exploit it without any user interaction by using the injected Twig, including with the autoescape tag, to serve script to every page visitor, including super admins, or to expose unpublished page content.
Official description · NVD
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.
- Exploited
- Not confirmed
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
Disclosed on 18 Nov 2026. No public exploit code or confirmed exploitation is recorded.
Affected versions and fixes
as published in the CVE recordgetgrav grav
Affected: >= 2.0.0, < 2.2.18
Not affected: 2.2.18
What security researchers reported
Not named in any threat report yetAlso mentioned in 2 community threat pulses (AlienVault OTX)
Weaker evidencePulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.
- Known_Cve | Nov 20, 2026 | Part 2/319 Nov 2026
- Known_Cve | Nov 19, 2026 | Part 2/319 Nov 2026