{"id":"CVE-2026-61607","published":"2026-08-19T15:18:15Z","modified":"2026-08-21T19:35:00Z","title":"Grav API Plugin: Stored XSS via SVG Upload - API Media Pipeline Bypasses Sanitizer","vendor":"getgrav","product":"grav-plugin-api","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00289,"percentile":0.21933,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-7vhm-8x52-2r5p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/getgrav/grav-plugin-api/commit/d25eedb84a387f2c71b12a374f2a4b3d74339a7e","tags":["x_refsource_MISC"]},{"url":"https://github.com/getgrav/grav-plugin-api/releases/tag/1.0.2","tags":["x_refsource_MISC"]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":4.39},{"name":"CVSS severity","points":3.22}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav-plugin-api","versions":["< 1.0.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-21T19:34:32.482729Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-62533","exploited":false,"provenance":"source"}}