CVE-2026-61607

MEDIUM CVSS 3.1: 4.6 EPSS 0.29%
Updated Sep 10, 2026
Grav
Parameter Value
CVSS 4.6 (MEDIUM)
Fixed In 1.0.2
Type CWE-79 (Cross-Site Scripting (XSS))
Vendor Grav
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
Low
Partial data modification
Availability
None
No disruption

CVSS Vector v3.1