{"id":"CVE-2026-61607","aliases":["CVE-2026-61607"],"related":[],"kind":"vulnerability","state":"published","title":"Grav API Plugin: Stored XSS via SVG Upload - API Media Pipeline Bypasses Sanitizer","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-08-19T15:18:15.354Z","modified":"2026-09-09T21:13:25.910Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.0.2","status":"affected"}],"vendor":"getgrav","product":"grav-plugin-api","source":"cvelist"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-7vhm-8x52-2r5p","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/getgrav/grav-plugin-api/commit/d25eedb84a387f2c71b12a374f2a4b3d74339a7e","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/getgrav/grav-plugin-api/releases/tag/1.0.2","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-21T19:34:32.482Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-61607","url":"https://www.cve.org/CVERecord?id=CVE-2026-61607","licence":"CVE Terms of Use","modified":"2026-08-21T19:35:00.839Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-61607","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61607","licence":"Public domain","modified":"2026-09-09T21:13:25.910Z"}],"updatedAt":"2026-11-25T22:59:33.969Z","epss":{"score":0.00255,"percentile":0.18243,"date":"2026-12-02T12:00:21.000Z"}}