CVE-2026-61607CWE-79cross-site-scripting

CVE-2026-61607

Medium · published August 19, 2026

CVSS v3.1
4.6
EPSS
0%
Percentile
20.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
4.6 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00289 · 20.3th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2026-08-19T20:18Z
References (4)
EPSS history
Timeline
  • 19 AUG 15:18Z
    Grav API Plugin: Stored XSS via SVG Upload - API Media Pipeline Bypasses Sanitizer
    cvelistv5