Vulnerability

CVE-2026-61607

mediumCVSS 3.1 4.6Published 19 Aug 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /getgrav/grav-plugin-api/commit/d25eedb84a387f2c71b12a374f2…
  • github.com /getgrav/grav-plugin-api/releases/tag/1.0.2
  • github.com /getgrav/grav/security/advisories/GHSA-7vhm-8x52-2r5p

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning