Technical impact
Grav versions 2.0.0 through 2.2.17 store user‑uploaded media without fully sanitizing the content, allowing attackers to embed malicious scripts inside SVG or XML file uploads that execute in an administrator’s browser when the file is accessed. This stored cross‑site scripting flaw gives attackers the ability to affect only administrators who view the flawed media file, potentially compromising account credentials and session data. The weakness is a CWE‑79 scenario involving insufficient input validation for user‑supplied media content.
Affected Systems
The vulnerable vendor is getgrav, product Grav. Affected releases include all Grav instances from version 2.0.0 up to but not including 2.2.18. There is no further vendor or product version specificity available beyond that range.
Risk and Exploitability
The CVSS score of 5.1 reflects moderate impact, and the EPSS score is not available, so uncertainty remains about how frequently this flaw is used in the wild. The vulnerability is not listed in the CISA KEV catalog, but because it requires media upload privileges, the attacker must first be granted the right to upload files in the target Grav site. Once credentials with the upload capability are in place, the attacker can upload a specially crafted SVG or XML file and wait for an administrator to open the file’s public URL, causing arbitrary script execution in the admin’s browser. The attack path is therefore limited to environments where administrators can be tricked into accessing the malicious media link.