Patchfirst
CVE-2026-130735 Critical · 9.8 EPSS 0.3%

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

Summary

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.

Breakdown
12.9 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Disclosed on 18 Nov 2026. No public exploit code or confirmed exploitation is recorded.

Affected versions and fixes

as published in the CVE record

getgrav grav

Affected: >= 2.0.0, < 2.2.18

Not affected: 2.2.18

What security researchers reported

Not named in any threat report yet

Also mentioned in 2 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

1 link, grouped by NVD tag
↑ ↓ chooseEnter openEsc close