CVE-2026-130734: Grav 2.0.0 before 2.2.18 Stored XSS via SVG and XML Media Uploads

Published Nov 18, 2026
·
Updated

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

1 affected component
Trilby Media Grav>=2.0.0<2.2.18

Event History

Nov 18, 2026
CVE Published
via MITRE·11:34 AM
Data Sourced
via MITRE·11:34 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203