Summary
CVE-2026-130735 is a critical Twig injection vulnerability in Grav, the flat-file CMS. Media-only accounts and anonymous uploaders can execute Twig by placing template delimiters in image metadata. It is rated CVSS 9.3 (Critical) and affects Grav 2.0.0 up to, but not including, 2.2.18.
Technical details
- Root cause: Twig template delimiters supplied in image titles, alt text, class, id, or file names are not neutralized and are executed as Twig. The CVE record classifies the weakness as CWE-79 (improper neutralization of input during web page generation).
- Trigger conditions: the attacker is a media-only account or an anonymous uploader who can supply those image fields.
- Attack vector: network, with no authentication or user interaction described as required in the CVSS vector.
- Impact: arbitrary Twig execution, with high impact to confidentiality, integrity, and availability per the CVSS vector.
- No exploitation in the wild was reported in the sources reviewed.
Affected software
- Grav 2.0.0 through 2.2.17 (>= 2.0.0 and < 2.2.18)
Severity
- CVSS v4.0 base score 9.3 (Critical):
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - The CVE record also lists a CVSS v3.1 score of 9.8:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: upgrade Grav to version 2.2.18 or later.
- No workarounds were identified in the sources reviewed. Until patched, consider restricting access to media upload functionality.
- Review the GitHub Security Advisory GHSA-jc8q-6vcj-4×25 for details.

