Skip to main content

Grav CMS EUVDEUVD-2026-60598

| CVE-2026-75834 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
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 editor-level Grav credentials
  2. Delivery
    Craft page with invalid UTF-8 byte and XSS payload
  3. Exploit
    Submit page via web editor
  4. Install
    preg_match() returns false under PCRE /u mode
  5. C2
    Malicious script bypasses safety gate and persists on disk
  6. Execute
    Victim navigates to affected page
  7. Impact
    Stored JavaScript executes in victim browser

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 an authenticated Grav user account with page-edit permissions who does not hold the security.xss_whitelist privilege - the bypass specifically targets the check applied to non-whitelisted editors. The attacker must have access to Grav's page editing interface and the ability to save arbitrary byte sequences in page content, which is the default capability of the editor role. Exploitation is further gated by the requirement that a victim must passively navigate to the affected page (CVSS UI:P); the attacker cannot force execution without a real user visiting the URL. Installations where all editor accounts are held by fully trusted internal staff with no shared credentials are at reduced practical risk. The vulnerability does not affect unauthenticated visitors or read-only user roles, and does not provide server-side code execution.

Impact

The CVSS 4.0 score of 5.1 (Medium) accurately reflects the access prerequisites - PR:L (authenticated editor) and UI:P (passive victim interaction) - with downstream impact limited to the subsequent system (SC:L/SI:L), meaning the server itself is not directly compromised. No EPSS data was supplied and there is no CISA KEV entry, indicating no confirmed active exploitation at time of analysis. However, the practical barrier to exploitation is low: the bypass requires inserting a single malformed byte, a technique any editor-level user can apply without specialized tooling, and the flat-file storage model means payloads persist until explicitly removed. Even a mid-sized municipal IT team in swidnica running a Grav-powered intranet with shared editor accounts should treat this as a priority patch rather than a deferred risk, because the editor role is often assigned broadly in small content teams. The moderate CVSS score is appropriate for the global risk tier but may understate urgency in environments where the editor role is loosely controlled.

Exploit ScenarioDerived

An authenticated editor crafts a Grav page whose content begins with a single invalid UTF-8 byte (e.g., 0x80) followed by a standard script tag payload such as a cookie-exfiltration script. When saved, preg_match() returns false for every XSS pattern under /u mode, so checkSafety() passes the content without sanitization and the page is written to disk. Any visitor who browses to the page will have their session cookie or other browser-accessible data silently transmitted 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

Stored XSS in Grav CMS before 2.0.14 allows authenticated page editors to bypass the save-time XSS detection gate by embedding a single invalid UTF-8 byte in page content, causing all PCRE /u-flagged patterns in Security::detectXss() to silently return false rather than flagging the payload. Any visitor who subsequently loads the affected page executes attacker-controlled JavaScript in their browser context. No public exploit code or CISA KEV listing has been identified at time of analysis, though the bypass mechanism is sufficiently documented in the vendor advisory that independent reproduction requires minimal effort.

RemediationAI

Upgrade Grav to version 2.0.14 or later, which is the vendor-confirmed fix per the GitHub security advisory at https://github.com/getgrav/grav/security/advisories/GHSA-q2j8-x8hf-63ch; this is the only confirmed remediation. If an immediate upgrade is not feasible, restrict page-edit permissions to the smallest possible set of fully trusted users and audit existing page content for unexpected script tags, event handlers, or encoded payloads. Deploying a Content Security Policy (CSP) header on the Grav front end (e.g., script-src 'self') will limit the impact of any already-stored XSS by blocking inline script execution, though this is a mitigating control only and does not prevent malicious content from being written to disk. Review the security.xss_whitelist configuration to ensure no unintended accounts hold whitelist privileges. Note that CSP may break legitimate inline scripts or third-party widget embeds and should be tested before deployment in production.

Affected VersionsENISA

grav 0 <2.0.14

Affected Packages

composer getgrav/grav fix: 2.0.14
euvd grav fix: 2.0.14

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, 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; page content is stored on disk rather than in a database, meaning stored payloads persist and survive routine content caching cycles. The vulnerability is in system/src/Grav/Common/Security.php within the detectXss() method, which is invoked by Validation::checkSafety() at save time to screen editor-submitted content for script injection. All XSS detection regular expressions are compiled with the PCRE /u modifier, which instructs PHP to treat the subject string as UTF-8. When preg_match() encounters an invalid byte sequence under /u mode, it returns boolean false rather than integer 0; false is falsy in PHP, so every pattern check in the loop evaluates as 'no match found,' and the safety gate passes the content unconditionally. This is a CWE-79 (Improper Neutralization of Input During Web Page Generation) rooted in a subtle encoding-error handling flaw rather than a missing pattern. CPE cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:* indicates all Grav versions prior to 2.0.14 carry this defect.

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

Requires low-privilege editor account (PR:L), victim must view the page (UI:R), and XSS executes in victim browser representing a scope change (S:C); no server-side confidentiality or 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
Aug 18, 2026 - 12:02 EUVD

DescriptionCVE.org

Grav before 2.0.14 contains a stored cross-site scripting vulnerability in the Security::detectXss() function (system/src/Grav/Common/Security.php). All XSS detection patterns use the PCRE /u (UTF-8) modifier, so a single invalid UTF-8 byte anywhere in page content causes preg_match() to return false for every pattern, silently bypassing the save-time XSS safety gate (Validation::checkSafety()). An authenticated attacker with page-edit permissions (without the security.xss_whitelist privilege) can store malicious JavaScript that executes in the browser of a visitor who views the affected page.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
niche flat-file PHP CMS, limited enterprise production footprint
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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 Yes
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

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
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