Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 96%

CVE-2026-61456: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav

0
Medium
VulnerabilityCVE-2026-61456cvecve-2026-61456
Published: 07/10/2026 (07/10/2026, 13:58:09 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: grav

Description

The Grav API plugin (getgrav/grav-plugin-api) before 1.0.3 fails to sanitize SVG files uploaded through the POST /api/v1/media endpoint. The HandlesMediaUploads::processUploadedFile() method validates only the file extension and never invokes Security::sanitizeSVG(), so an authenticated attacker with the api.media.write permission can upload an SVG containing arbitrary JavaScript. The file is stored unmodified and served with Content-Type: image/svg+xml; when an administrator opens it in a browser (directly or via <object>/<iframe>), the embedded script executes in their session context, enabling cookie theft and session hijacking.

CVSS v4.0

Score 5.1medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Affected software

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

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: 07/10/2026, 15:03:35 UTC

Technical Analysis

The Grav API plugin (getgrav/grav-plugin-api) versions prior to 1.0.3 do not properly sanitize SVG files uploaded through the media API endpoint. The HandlesMediaUploads::processUploadedFile() method only validates the file extension and does not call Security::sanitizeSVG(), resulting in SVG files containing malicious JavaScript being stored and served unmodified with the Content-Type image/svg+xml. This allows an authenticated attacker with api.media.write permission to execute arbitrary scripts in the context of an administrator's browser session when the SVG is viewed, enabling cross-site scripting attacks.

Potential Impact

An attacker with authenticated access and the api.media.write permission can upload malicious SVG files containing JavaScript. When an administrator views these SVG files, the embedded script executes in their browser session, potentially allowing cookie theft and session hijacking. This compromises the administrator's session security and may lead to further unauthorized actions within the Grav environment.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict api.media.write permissions to trusted users only and avoid opening SVG files uploaded via the API in administrator browsers. Monitor vendor communications for updates and apply official patches once released.

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
VulnCheck
Date Reserved
2026-07-09T14:07:55.624Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a51062d68715ace43b84ade

Added to database: 07/10/2026, 14:48:13 UTC

Last enriched: 07/10/2026, 15:03:35 UTC

Last updated: 08/24/2026, 10:52:10 UTC

Views: 89

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