Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain media-upload account (publisher or api.media.write)
-
DeliveryUpload SVG/XML with sanitizer-bypass extension or crash payload
-
ExploitFile stored raw on site origin
-
ExecutionAdministrator opens raw file URL
-
ImpactScript 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol
Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their
A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug
Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a
GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv
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
Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri
Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm
Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past
Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make
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
Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary
EUVD-2026-128808
GHSA-2rqg-gmwx-8f9j
NVD
CVE.org
EPSS
Exploit-DB