Skip to main content

Grav CMS EUVDEUVD-2026-128808

| CVE-2026-130734 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-18 VulnCheck GHSA-2rqg-gmwx-8f9j
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain media-upload account (publisher or api.media.write)
  2. Delivery
    Upload SVG/XML with sanitizer-bypass extension or crash payload
  3. Exploit
    File stored raw on site origin
  4. Execution
    Administrator opens raw file URL
  5. Impact
    Script executes in admin session on same origin

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an account with media-upload rights - a Grav publisher role, or an account holding only the api.media.write capability (the API plugin route is noted as the easier path). The attacker must then get the stored file served as active content via one of three concrete gaps: (1) an inner-extension filename such as drawing.svg.defaults (the media.types.defaults fallback is accepted and Apache types the file by the inner .svg, serving image/svg+xml), optionally with a namespaced root like <s:svg> to dodge the XSS pre-check and the API's <svg sniff; (2) a ~127-byte payload that makes Security::sanitizeSVG() throw a ValueError or exceed the time limit so the fail-open sanitizer leaves the already-moved raw file in the public folder; or (3) a .xml or .xhtm file, since security.uploads_dangerous_extensions omitted xml and xhtm. Key LIMITING factors: exploitation needs valid authentication (not anonymous), needs an administrator to actively navigate to the raw file URL (which the normal admin flow does not do), and depends on how the web server types/serves the file (Content-Type/nosniff behavior). Grav 1.7 shares the vulnerable code but is excluded from the advisory because its upload also requires an account.

Impact

This is a genuine but moderate-priority issue, not a drop-everything emergency, and the signals are internally consistent. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N, base 5.1 Medium) shows a network-reachable but authenticated flaw (PR:L) that additionally requires passive victim interaction (UI:P) - specifically an administrator navigating to the raw uploaded file URL, which the advisory notes the normal admin workflow does NOT do. There is no CISA KEV listing and no EPSS score in the provided data, so exploitation is not confirmed in the wild; the vuln.today decision label is 'this_month', consistent with a Medium, patch-on-normal-cadence item rather than act_now. No confirmed public working exploit is present in the input (only the GHSA advisory reference), though the advisory describes reproduction techniques. The main factors tempering risk are the dual requirements of an attacker-controlled media-upload account (publisher role or api.media.write) AND an administrator being induced to open the raw file; the main aggravating factor is that the payload executes on the site's own origin against privileged sessions and this is an incomplete fix of two prior advisories (GHSA-66xf-ggf4-6hmc, GHSA-7vhm-8x52-2r5p), indicating a recurring hard-to-sanitize surface. Net: real and worth patching this month, but constrained by authentication and the unusual victim-interaction requirement - not a widely-sprayable unauthenticated RCE.

Exploit ScenarioDerived

An attacker holding media-upload rights (a publisher account or an account with only api.media.write) uploads a crafted SVG/XML/XHTML file that evades Grav's sanitizer - e.g. an inner-extension name like drawing.svg.defaults, a 127-byte payload that crashes the fail-open sanitizer and leaves the raw file served, or a simple .xml/.xhtm file the extension blocklist missed. The malicious file is stored under the site's own origin; when an administrator later opens the raw file URL, the embedded script executes in their authenticated session. No confirmed public working exploit is in the provided data, but the advisory documents the reproduction techniques.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Stored cross-site scripting in Grav CMS 2.0.0 through 2.2.17 lets an authenticated account with media-upload rights - a publisher role, or an account holding only the api.media.write capability via the API plugin - store an SVG, XML or XHTML file that the site then serves from its own origin, so embedded script runs in the session of anyone who opens the raw file URL, an administrator included. Three concrete gaps defeat the upload sanitizer: a filename with an inner extension such as drawing.svg.defaults that is accepted via the media.types.defaults fallback and later typed as image/svg+xml by the web server, a small payload that makes Security::sanitizeSVG() throw or time out so the already-moved raw file survives in the public folder, and the omission of xml and xhtm from security.uploads_dangerous_extensions. No confirmed active exploitation or working exploit code is reported; the vendor advisory does describe a reproducer, so a public PoC reference exists but it is not verified as working exploit code, and the this_month priority label reflects the assessor's view that exploitation still requires valid credentials, a deliberate administrator navigation to the raw file, and web-server behavior that types the file as active content.

RemediationAI

Vendor-released patch: upgrade Grav to 2.2.18, which refuses defaults as an upload type, routes the SVG decision through a shared helper that inspects every extension part so drawing.svg.foo is sanitized, quarantines a sanitizer that throws or fails, and empties the stored file before sanitizing so a fatal error leaves it empty. That release also adds xml, xhtm, xsl, xslt, atom, rss, rdf and mml to security.uploads_dangerous_extensions, which is a behavior change for sites that legitimately attach XML files; affected operators can take xml back out of uploads_dangerous_extensions in their security configuration, accepting the corresponding increase in risk. Update the Form plugin to 9.1.38, which refuses and removes an SVG upload the sanitizer cannot clean instead of storing it as sent, and the API plugin to 1.1.6, which applies the same namespace-aware SVG check and sanitizes in temporary storage before moving the file into the media folder. As an interim workaround, send Content-Security-Policy: sandbox and X-Content-Type-Options: nosniff on static files served from user/ and images/, which neutralizes script in SVG, XML and XHTML regardless of the uploaded file name. Full details are in the advisory at https://github.com/getgrav/grav/security/advisories/GHSA-mxwr-773q-23xw.

Affected VersionsENISA

grav 2.0.0 <2.2.18

Affected Packages

euvd grav fix: 2.2.18

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Grav is a flat-file PHP CMS whose media pipeline attempts two defenses: an SVG sanitizer applied during upload, and a blocklist of active-content extensions (security.uploads_dangerous_extensions). The root cause class is CWE-79 (improper neutralization of input during web page generation), with CWE-434 (unrestricted upload of dangerous file type) as the enabling weakness, because the sanitizer decision is made on the last extension only. Core treats an upload as SVG only when the final extension is svg, but the media type check accepts defaults as a fallback extension because media.types.defaults is itself a configured media type; a name such as drawing.svg.defaults therefore bypasses sanitization, and a multi-extension-aware web server such as Apache, which skips the unmapped .defaults suffix, serves the file with the inner .svg content type. The pre-upload XSS check can be dodged with a namespaced root element such as <s:svg>, which the API plugin's isSvgUpload() heuristic (last extension plus a literal <svg sniff) also fails to match while it accepts any extension not on the dangerous list. Separately, Security::sanitizeSVG() quarantines a file only when the sanitizer returns boolean false, yet the underlying DOM sanitizer returns a string, throws a ValueError once its doctype pattern consumes a crafted file, or exceeds the time limit; because both the API and core move the upload into the public folder before sanitizing, a roughly 127-byte payload leaves the raw file in place with its onload attribute intact after a 500 response. Finally, the dangerous-extension list added by the earlier GHSA-66xf fix covers xhtml, xht and svgz but never included xml or xhtm, so report.xml and report.xhtm upload with 201 and are served as XML types. Grav 1.7 contains the same code paths but is excluded from the advisory because its upload also requires an account, so no 1.7 release is listed.

Know when Grav gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
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
vuln.today AI 5.4 MEDIUM

Authenticated upload account gives PR:L; admin must open the raw file so UI:R; stored script executes in a different (admin) security context giving S:C with limited C/I and no availability impact.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 18, 2026 - 13:02 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Medium
popular open-source flat-file CMS, common but far narrower footprint than WordPress
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Grav

View all
CVE-2025-66294 HIGH POC
8.7 Dec 01

Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol

CVE-2025-66301 HIGH POC
8.6 Dec 01

Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their

CVE-2025-50286 HIGH POC
8.1 Aug 06

A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug

CVE-2024-34082 CRITICAL POC
9.9 May 15

Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a

CVE-2021-47812 CRITICAL POC
9.8 Jan 16

GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv

CVE-2026-65008 CRITICAL POC
9.3 Jul 21

Remote code execution in Grav CMS 2.0.4 (fixed in 2.0.7) lets an authenticated user holding the admin.pages or api.pages

CVE-2026-75827 CRITICAL POC
9.3 Aug 18

Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri

CVE-2026-75837 CRITICAL POC
9.3 Aug 18

Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm

CVE-2026-75828 CRITICAL POC
9.3 Aug 18

Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past

CVE-2025-66844 CRITICAL POC
9.1 Dec 15

Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make

CVE-2025-66299 HIGH POC
8.8 Dec 01

Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (S

CVE-2026-72819 HIGH POC
8.7 Aug 14

Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy