{"id":"CVE-2026-61456","published":"2026-07-10T13:58:09Z","modified":"2026-07-10T14:45:32Z","title":"Grav before 1.0.3 Stored XSS via SVG Upload API","vendor":"getgrav","product":"grav","tier":"tail","description":{"text":"The Grav API plugin (getgrav/grav-plugin-api) before 1.0.3 fails to sanitize SVG files uploaded through the POST /api/v1/media endpoint. The HandlesMediaUploads::processUploadedFile() method validates only the file extension and never invokes Security::sanitizeSVG(), so an authenticated attacker with the api.media.write permission can upload an SVG containing arbitrary JavaScript. The file is stored unmodified and served with Content-Type: image/svg+xml; when an administrator opens it in a browser (directly or via <object>/<iframe>), the embedded script executes in their session context, enabling cookie theft and session hijacking.","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.00235,"percentile":0.08696,"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":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/grav-before-stored-xss-via-svg-upload-api","tags":["third-party-advisory"]}],"priority":{"score":5.0,"factors":[{"name":"EPSS percentile","points":1.74},{"name":"CVSS severity","points":3.22}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav","versions":["< 1.0.3"]}],"fixedVersions":[{"vendor":"getgrav","product":"grav","versions":["1.0.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-10T14:45:09.952855Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-42905","exploited":false,"provenance":"source"}}