Script Injection Vulnerability in Grav Plugin by Grav
CVE-2026-74908
5.1MEDIUM
What is CVE-2026-74908?
The Grav plugin-api prior to version 1.0.15 is susceptible to a script injection vulnerability due to inadequate validation of file types. The SVG sanitizer only checks for the '.svg' extension, failing to properly sanitize '.svgz' and '.xhtml' files. This oversight allows attackers with 'api.media.write' permission to upload harmful files containing executable scripts. When these files are accessed by site administrators or visitors, the scripts can execute in the site origin, potentially leading to unauthorized actions and data breaches.
Affected Version(s)
grav 0 < 1.0.15
grav 1.0.15
