CVE-2026-130734: Grav 2.0.0 before 2.2.18 Stored XSS via SVG and XML Media Uploads
Grav from 2.0.0 before 2.2.18 contains a stored cross-site scripting vulnerability that allows users with media upload rights to bypass the upload sanitizer. Attackers can upload SVG files with inner extensions like .svg.defaults, payloads that crash the fail-open sanitizer, or unblocked .xml/.xhtm files to run script when administrators open the raw file URL.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs an account or role with media upload rights. Exploitation also requires an administrator to open the uploaded file's raw URL, making this most relevant where untrusted or lower-privileged users can upload media.
Which upload types or techniques are involved?
The issue can be triggered with SVG files using inner extensions such as .svg.defaults, payloads that crash the fail-open upload sanitizer, or unblocked .xml and .xhtm files. These files can execute script when their raw URL is opened by an administrator.
Which Grav versions are affected?
Grav versions from 2.0.0 before 2.2.18 are affected. Version 2.2.18 is not included in the affected range.
What can be done if updating is not immediately possible?
Restrict media upload rights to trusted users and prevent uploads of SVG, XML, and XHTM content where possible. Administrators should avoid opening raw URLs for uploaded media from untrusted users.