# CVE-2026-61607: Grav API Plugin: Stored XSS via SVG Upload - API Media Pipeline Bypasses Sanitizer

- Severity: Medium 4.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-19T15:18:15.354Z
- Modified: 2026-09-09T21:13:25.910Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- getgrav grav-plugin-api: < 1.0.2

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-7vhm-8x52-2r5p> (exploit)
- <https://github.com/getgrav/grav-plugin-api/commit/d25eedb84a387f2c71b12a374f2a4b3d74339a7e>
- <https://github.com/getgrav/grav-plugin-api/releases/tag/1.0.2>

## Sources

- CVE List: [CVE-2026-61607](https://www.cve.org/CVERecord?id=CVE-2026-61607), CVE Terms of Use, modified 2026-08-21
- NVD: [CVE-2026-61607](https://nvd.nist.gov/vuln/detail/CVE-2026-61607), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-61607 · Whole record: https://cve.day/CVE-2026-61607.json · Rebuilt by cve.day 2026-11-25T22:59:33.969Z
