Vulnerability Description
Grav API Plugin is a RESTful API for Grav CMS that provides full headless access to your site's content. Prior to 1.0.2, the Grav API plugin POST /api/v1/media pipeline in HandlesMediaUploads::processUploadedFile() validates an SVG filename extension but does not invoke Security::sanitizeSVG(). An attacker with api.media.write permission can store an SVG containing JavaScript, and the server returns the file as Content-Type: image/svg+xml so the script executes when a victim opens it, allowing session data theft and authenticated actions. This issue is fixed in version 1.0.2.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/getgrav/grav-plugin-api/commit/d25eedb84a387f2c71b12a374f2a4b
- https://github.com/getgrav/grav-plugin-api/releases/tag/1.0.2
- https://github.com/getgrav/grav/security/advisories/GHSA-7vhm-8x52-2r5p
- https://github.com/getgrav/grav/security/advisories/GHSA-7vhm-8x52-2r5p
FAQ
What is CVE-2026-61607?
CVE-2026-61607 is a vulnerability with a CVSS score of 4.6 (MEDIUM). Grav API Plugin is a RESTful API for Grav CMS that provides full headless access to your site's content. Prior to 1.0.2, the Grav API plugin POST /api/v1/media pipeline in HandlesMediaUploads::process...
How severe is CVE-2026-61607?
CVE-2026-61607 has been rated MEDIUM with a CVSS base score of 4.6/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-61607?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.