CVE-2026-130735 Grav 2.0.0 before 2.2.18 Twig Injection via Media Metadata and File Names
- Exploited in the wild
- Not known
- Fix
- 2.2.18
What is CVE-2026-130735?
CVE-2026-130735 is a critical vulnerability in getgrav grav, published on 18 Nov 2026.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2026-130735?
How do I fix CVE-2026-130735?
Upgrade getgrav grav to 2.2.18 or later. The advisory says that version fixes it.
Is CVE-2026-130735 being exploited?
There is no known exploitation of CVE-2026-130735 in the wild and no public exploit code.
Sources
Also known as GHSA-jc8q-6vcj-4x25, GHSA-mc27-cghq-x54v.