CVE-2026-61607: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav-plugin-api
CVE-2026-61607 is a cross-site scripting (XSS) vulnerability in the Grav API Plugin for Grav CMS. Versions prior to 1.0.2 do not properly sanitize SVG files uploaded via the POST /api/v1/media endpoint, allowing attackers with api.media.write permission to upload SVGs containing malicious JavaScript. When these SVG files are served with the image/svg+xml content type, the embedded script executes in the victim's browser, potentially leading to session data theft and unauthorized actions. This vulnerability is fixed in version 1.0.2.
AI Analysis
Technical Summary
The Grav API Plugin prior to version 1.0.2 has an XSS vulnerability in the HandlesMediaUploads::processUploadedFile() function. While it validates the SVG filename extension, it fails to invoke Security::sanitizeSVG(), allowing an attacker with api.media.write permission to upload SVG files containing JavaScript. These files are served with the image/svg+xml content type, causing the script to execute in the context of the victim's browser, enabling session theft and authenticated actions. The issue is resolved in version 1.0.2.
Potential Impact
An attacker with api.media.write permission can upload malicious SVG files that execute JavaScript in the context of users who view the SVG, potentially leading to session data theft and unauthorized authenticated actions. The CVSS score of 4.6 (medium severity) reflects limited impact due to required privileges and user interaction.
Mitigation Recommendations
Upgrade the Grav API Plugin to version 1.0.2 or later, where this vulnerability is fixed. No other mitigation is required as the fix properly sanitizes SVG uploads to prevent script execution.
CVE-2026-61607: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav-plugin-api
Description
CVE-2026-61607 is a cross-site scripting (XSS) vulnerability in the Grav API Plugin for Grav CMS. Versions prior to 1.0.2 do not properly sanitize SVG files uploaded via the POST /api/v1/media endpoint, allowing attackers with api.media.write permission to upload SVGs containing malicious JavaScript. When these SVG files are served with the image/svg+xml content type, the embedded script executes in the victim's browser, potentially leading to session data theft and unauthorized actions. This vulnerability is fixed in version 1.0.2.
CVSS v3.1
Score 4.6medium
Affected software
getgrav
grav-plugin-api
pkg:github/getgrav/grav-plugin-apiRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Grav API Plugin prior to version 1.0.2 has an XSS vulnerability in the HandlesMediaUploads::processUploadedFile() function. While it validates the SVG filename extension, it fails to invoke Security::sanitizeSVG(), allowing an attacker with api.media.write permission to upload SVG files containing JavaScript. These files are served with the image/svg+xml content type, causing the script to execute in the context of the victim's browser, enabling session theft and authenticated actions. The issue is resolved in version 1.0.2.
Potential Impact
An attacker with api.media.write permission can upload malicious SVG files that execute JavaScript in the context of users who view the SVG, potentially leading to session data theft and unauthorized authenticated actions. The CVSS score of 4.6 (medium severity) reflects limited impact due to required privileges and user interaction.
Mitigation Recommendations
Upgrade the Grav API Plugin to version 1.0.2 or later, where this vulnerability is fixed. No other mitigation is required as the fix properly sanitizes SVG uploads to prevent script execution.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-10T17:36:04.597Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a85cdc8acd9273b49443578
Added to database: 08/19/2026, 15:37:44 UTC
Last enriched: 09/11/2026, 08:04:51 UTC
Last updated: 10/02/2026, 02:46:05 UTC
Views: 68
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.