← VULNERABILITIES

CVE-2026-130735

Grav 2.0.0 before 2.2.18 Twig Injection via Media Metadata and File Names

Critical · 9.3Fix available
CVSS
9.3
EPSS
0.31% (p26)
Published
2026-11-18
Age
18d old
Modified
2026-11-18
Product
getgrav grav
Aliases
GHSA-jc8q-6vcj-4x25

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

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.

Fixed in

2.2.18

Affected packages

EcosystemPackageRangeFixed
vendorgrav>=2.0.0, <2.2.182.2.18

Sources

  • NVD · first seen 18d ago · NVD terms of use
  • OSV · first seen 18d ago · CC-BY 4.0
  • CVE List · first seen 18d ago · CVE Terms of Use

References

JSON