# CVE-2026-61456: Grav before 1.0.3 Stored XSS via SVG Upload API

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA: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.17%, higher than 6% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-10T13:58:09.670Z
- Modified: 2026-10-25T15:10:00.147Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- getgrav grav: before 1.0.3 (not affected: 1.0.3)

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-7vhm-8x52-2r5p> (exploit, vendor-advisory)
- <https://www.vulncheck.com/advisories/grav-before-stored-xss-via-svg-upload-api> (third-party-advisory)

## Sources

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

---

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