XSS in Getgrav Grav-Plugin-Api
CVE-2026-61607
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.6 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.003 (19.5th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 19th percentile — 19.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.003 · change: +0.001
Affected products
- Getgrav Grav-Plugin-Api — versions < 1.0.2
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-61607?
- CVE-2026-61607 is a medium-severity vulnerability in Getgrav Grav-Plugin-Api, classified under Cross-site Scripting. CVSS score: 4.6/10. Published 2026-08-19.
- How severe is CVE-2026-61607?
- Medium severity. CVSS v3 base score is 4.6 out of 10.