CVE-2026-61607: getgrav grav-plugin-api Cross-site Scripting
Vulnerability summary
CVE-2026-61607 is a medium (CVSS 4.6) Cross-site Scripting vulnerability in getgrav grav-plugin-api. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 20.1% of scored vulnerabilities.
Timeline
- 19-08-2026PublishedVulnerability first disclosed.
- 21-08-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST4.6MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.29%
Chance of exploitation in the next 30 days
Percentile
20%
Versus all other CVEs
30-day change
+0.03 pp
From 0.26% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Getgrav1 product
- grav-plugin-api< 1.0.2
1 vendor · 1 product
References
3 links- github.com/getgrav/grav/security/advisories/GHSA-7vhm-8x52-2r5pX Refsource CONFIRM
- github.com/getgrav/grav-plugin-api/releases/tag/1.0.2X Refsource MISC