Grav versions 2.0.0 up to but not including 2.2.18 have a critical Twig injection flaw: media-only accounts and anonymous uploaders can run Twig code by putting it in image metadata or file names.
What Is It
CVE-2026-130735 is a Twig injection vulnerability in the Grav content management system from getgrav. Attackers can place Twig delimiters in several image-related fields:
- image titles
- alt text
- class
- id
- file names
Grav then runs the injected content as Twig. The NVD record classifies the weakness as CWE-79 (Cross-site Scripting). VulnCheck disclosed the issue, and NVD published it on 2026-11-18. Its NVD status is currently "Deferred."
Why It Matters
According to the description, attackers can combine injected Twig with the autoescape tag in two ways:
- Serve script to every page visitor. This includes super admins, so a low-privilege upload can affect the most privileged users of the site.
- Expose unpublished page content.
The flaw does not require an administrative account. Media-only accounts and anonymous uploaders can trigger it.
VulnCheck scores it as CRITICAL:
- CVSS 3.1: 9.8 (
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). This means a network attack vector, low complexity, no privileges required and no user interaction. - CVSS 4.0: 9.3, also CRITICAL.
The supplied CISA KEV entry is empty, so KEV does not confirm active exploitation. No exploitation status is given for this CVE in the supplied data.
What's Vulnerable
- Vendor: getgrav
- Product: Grav
- Affected: 2.0.0 up to but not including 2.2.18 (semver)
- Not affected: 2.2.18
The risk is highest for sites that let media-only accounts or anonymous users upload files.
Patch Status
According to the affected-version data, Grav 2.2.18 is not affected. Administrators running Grav 2.x should upgrade to 2.2.18 or later. The vendor's GitHub security advisory, linked below, has more detail.
There is no CISA KEV entry for this CVE, so there is no KEV required action or due date.