Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain api.media.write credentials
-
DeliveryUpload crafted .svgz or .xhtml file via media API
-
ExploitSanitizer skips file due to incomplete extension check
-
InstallMalicious file stored unsanitized on server
-
C2Admin or visitor renders file in browser
-
ExecuteEmbedded JavaScript executes in Grav site origin
-
ImpactSession token or credentials exfiltrated
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 | Exploitation requires that the attacker hold valid credentials for an account explicitly granted the api.media.write permission on the target Grav installation - this permission is not assigned by default and must be deliberately provisioned. Execution of the payload is further conditioned on a separate victim (administrator or site visitor) accessing or rendering the uploaded file through a browser after upload (CVSS UI:P); the script does not execute server-side at upload time. Limiting factors: api.media.write must be reachable and granted to an account under attacker control; the attack cannot self-trigger after upload; and the payload only executes within the browser's rendering of the specific file, constraining impact to origin-level XSS rather than server-side code execution. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P) reflects a moderate and well-bounded risk: the attack is network-accessible with low complexity but is gated by a required low-privilege credential (api.media.write) and passive victim interaction before payload execution. No EPSS score is available in the provided intelligence, so exploitation probability cannot be quantified numerically. No CISA KEV listing is present, and no public exploit code is referenced - exploitation status is unconfirmed at time of analysis. The stored-XSS nature of this flaw meaningfully elevates real-world impact relative to reflected XSS: a single successful upload persists until remediated and can affect multiple victims over time, meaning even a mid-sized municipal IT team in boleslawiec should treat this as a medium-priority patch rather than a backlog item. The narrow api.media.write permission prerequisite substantially limits the realistic attacker pool to insider threats, compromised low-privilege API accounts, or scenarios where that permission is over-provisioned. No conflicting signals between data sources are present, but the absence of EPSS and POC data leaves exploitation probability genuinely uncertain. |
| Exploit ScenarioDerived | An attacker who has obtained api.media.write credentials - through account compromise, insider access, or over-provisioned API tokens - crafts a .svgz file embedding a JavaScript payload targeting session cookies or CSRF actions. The file is submitted to the media upload API endpoint and stored on the server without sanitization because the extension check does not match 'svgz'. When an administrator later browses the media library or a visitor accesses a page rendering the file, the embedded script executes in the Grav site's origin, exfiltrating the victim's session token to an attacker-controlled endpoint. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
Script injection in Grav plugin-api before 1.0.15 enables authenticated users holding api.media.write permission to upload .svgz or .xhtml files that bypass the platform's SVG sanitizer, storing executable script payloads server-side. The sanitizer's incomplete extension check - recognizing only the exact string 'svg' - leaves these semantically equivalent vector/XML formats unprocessed, allowing stored cross-site scripting payloads to execute in the Grav site origin when subsequently accessed by administrators or visitors. No public exploit has been identified at time of analysis; the CVSS 4.0 score of 5.1 reflects the mandatory low-privilege credential requirement and passive victim interaction.
RemediationAI
Upgrade Grav plugin-api to version 1.0.15 or later, which resolves the incomplete extension check in the SVG sanitizer; this is the vendor-confirmed fix per GHSA-66xf-ggf4-6hmc (https://github.com/getgrav/grav/security/advisories/GHSA-66xf-ggf4-6hmc). If immediate patching is not feasible, revoke or restrict api.media.write permission to the minimum set of accounts that operationally require it, eliminating the exploitation prerequisite entirely - note that this may disrupt legitimate media management workflows for API-integrated services. As a secondary server-side control, configure the web server to return Content-Disposition: attachment for .svgz and .xhtml file types, preventing inline browser rendering and script execution even for already-stored malicious files; this does not remove existing payloads, however. After patching, audit previously uploaded .svgz and .xhtml media files for suspicious script content, particularly if api.media.write was granted to external or lower-trust accounts.
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 plugin-api (CPE: cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*) exposes a media upload API endpoint that relies on file-extension matching to determine which uploads require SVG sanitization. The sanitizer performs a string equality check for the literal extension 'svg', failing to account for .svgz (gzip-compressed SVG, a valid XML vector format) and .xhtml (XHTML documents that can embed SVG and script elements). Both formats are rendered by modern browsers in a manner that executes embedded JavaScript. CWE-79 (Improper Neutralization of Input During Web Page Generation) is the root cause: the sanitization coverage is incomplete at the allowlist level, meaning malicious content is never inspected before storage. Once stored at a server path served from the Grav origin, the file's script content executes in the victim browser's session context for that origin.
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:L/VI:L/VA:N/SC:N/SI:N/SA:N
Requires api.media.write authentication (PR:L), passive victim interaction to trigger payload (UI:R), and scope change as script executes in victim browser context (S:C); no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
Grav plugin-api before 1.0.15 contains a script injection vulnerability where the SVG sanitizer only checks for the exact extension 'svg', allowing .svgz and .xhtml files to bypass sanitization and be stored unsanitized. Attackers with api.media.write permission can upload files containing executable script payloads that execute in the site origin when accessed by administrators or visitors.
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-60589
GHSA-88pj-3rjg-jjc5
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB