Skip to main content

Grav plugin-api CVE-2026-74908

| EUVDEUVD-2026-60589 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-18 VulnCheck GHSA-88pj-3rjg-jjc5
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Obtain api.media.write credentials
  2. Delivery
    Upload crafted .svgz or .xhtml file via media API
  3. Exploit
    Sanitizer skips file due to incomplete extension check
  4. Install
    Malicious file stored unsanitized on server
  5. C2
    Admin or visitor renders file in browser
  6. Execute
    Embedded JavaScript executes in Grav site origin
  7. Impact
    Session 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.

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

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

Alert me

AnalysisAIv1 – 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

grav 0 <1.0.15

Affected Packages

euvd grav fix: 1.0.15

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

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

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.

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:L/VI:L/VA:N/SC:N/SI:N/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
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Aug 18, 2026 - 12:02 EUVD

DescriptionCVE.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

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
niche Grav CMS API plugin with limited enterprise footprint
Data Quality
6 sources
Confidence: High

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.2%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

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