Skip to main content
EPSS 0.3%top 81%

CVE-2026-61607: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav-plugin-api

0
Medium
VulnerabilityCVE-2026-61607cvecve-2026-61607cwe-79
Published: 08/19/2026 (08/19/2026, 15:18:15 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

Affected software

getgrav

grav-plugin-api

Affected versions
<1.0.2
GitHub Actionsmore threats →ai
getgrav/grav-plugin-api
pkg:github/getgrav/grav-plugin-api
Affected versions
<1.0.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/11/2026, 08:04:51 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses