CVE-2026-130734

Grav 2.0.0 before 2.2.18 Stored XSS via SVG and XML Media Uploads

Published Nov 18, 2026 CVSS 4.0 · 5.1 Medium EPSS n/a KEV · Not listed
Description
Grav from 2.0.0 before 2.2.18 contains a stored cross-site scripting vulnerability that allows users with media upload rights to bypass the upload sanitizer. Attackers can upload SVG files with inner extensions like .svg.defaults, payloads that crash the fail-open sanitizer, or unblocked .xml/.xhtm files to run script when administrators open the raw file URL.

Analysis

AI-generated

Technical impact

Grav versions 2.0.0 through 2.2.17 store user‑uploaded media without fully sanitizing the content, allowing attackers to embed malicious scripts inside SVG or XML file uploads that execute in an administrator’s browser when the file is accessed. This stored cross‑site scripting flaw gives attackers the ability to affect only administrators who view the flawed media file, potentially compromising account credentials and session data. The weakness is a CWE‑79 scenario involving insufficient input validation for user‑supplied media content.

Affected Systems

The vulnerable vendor is getgrav, product Grav. Affected releases include all Grav instances from version 2.0.0 up to but not including 2.2.18. There is no further vendor or product version specificity available beyond that range.

Risk and Exploitability

The CVSS score of 5.1 reflects moderate impact, and the EPSS score is not available, so uncertainty remains about how frequently this flaw is used in the wild. The vulnerability is not listed in the CISA KEV catalog, but because it requires media upload privileges, the attacker must first be granted the right to upload files in the target Grav site. Once credentials with the upload capability are in place, the attacker can upload a specially crafted SVG or XML file and wait for an administrator to open the file’s public URL, causing arbitrary script execution in the admin’s browser. The attack path is therefore limited to environments where administrators can be tricked into accessing the malicious media link.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Grav to version 2.2.18 or later to apply the official fix.
  • If an upgrade is not possible, revoke media upload permissions except for trusted administrators and enforce strict file type validation to block .svg/.xml uploads.
  • Enable Content Security Policy headers that block inline script execution for media files and monitor logs for suspicious file upload activity.

Generated by OpenCVE AI on November 18, 2026 at 19:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Grav from 2.0.0 before 2.2.18 contains a stored cross-site scripting vulnerability that allows users with media upload rights to bypass the upload sanitizer. Attackers can upload SVG files with inner extensions like .svg.defaults, payloads that crash the fail-open sanitizer, or unblocked .xml/.xhtm files to run script when administrators open the raw file URL.
Title Grav 2.0.0 before 2.2.18 Stored XSS via SVG and XML Media Uploads
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-79
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 18, 2026, 11:34 AM
Reserved
Nov 17, 2026, 3:40 PM
Status
Deferred
Published
Nov 18, 2026, 12:17 PM
Modified
Nov 18, 2026, 12:17 PM