PT-2026-57199
CVE-2026-61456
·
Published
2026-07-10
·
Updated
2026-07-10
Description by
CVSS 4.0
5.1
MediumMetricsAV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions
Grav API plugin versions prior to 1.0.3
Description
Insufficient sanitization of SVG files uploaded via the 'POST /api/v1/media' endpoint allows an authenticated attacker with
api.media.write permission to upload a file containing arbitrary JavaScript. The HandlesMediaUploads::processUploadedFile() function only validates the file extension and fails to call Security::sanitizeSVG(). Because the file is stored unmodified and served as image/svg+xml, the embedded script executes in the session context of an administrator who opens the file, potentially leading to cookie theft and session hijacking.Recommendations
Update Grav API plugin to version 1.0.3 or later.
Restrict the use of the
api.media.write permission to trusted users only.Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾