Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain page-editor account
-
DeliveryCraft payload embedding `>` inside quoted attribute value
-
ExploitSave page, bypassing Security::detectXss() regex
-
ExecutionAny visitor loads affected page
-
PersistBrowser executes injected onerror handler
-
ImpactSteal session tokens or perform actions in site 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 | Exploitation requires an account with Grav page-editor privileges; the account must NOT hold |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P, score 5.1) accurately captures the principal limiting factors: the attacker must hold a page-editor credential (PR:L) and a victim must view the page (UI:P). Despite the moderate score, the stored nature of this XSS substantially raises real-world impact compared with reflected variants, because a single injected payload persists and fires for every subsequent visitor without further attacker interaction. No EPSS score was included in the available intelligence, so statistical exploitation probability cannot be quantified from provided data. The vulnerability is not listed in CISA KEV and no public exploit code has been identified at time of analysis. The realistic threat actor is a semi-trusted but malicious or compromised editor account - a scenario common in multi-author CMS deployments where page-editing access is broadly delegated. No conflicting signals were identified between the CVSS 4.0 vector and the vulnerability description; the metrics and the technical narrative are consistent. |
| Exploit ScenarioDerived | An attacker who holds a Grav page-editor account (without admin.super) edits a publicly accessible page and saves content containing |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 14, 2026
Stored cross-site scripting in Grav CMS versions 1.5.2 through 2.0.12 allows authenticated page editors lacking admin.super privileges to bypass the built-in XSS filter by embedding a literal > character inside a quoted HTML attribute value, exploiting a regex blind spot in Security::detectXss() that causes the detector to consider the tag closed while browsers continue parsing it and execute a trailing event handler such as onerror. The crafted payload is accepted, persisted server-side, and executes in the site origin every time any visitor - including unauthenticated users - views the affected page. No public exploit has been identified at time of analysis; vendor-released patch is available in Grav 2.0.13.
RemediationAI
Upgrade Grav CMS to version 2.0.13, which resolves the regex defect in Security::detectXss(). The fix commit is at https://github.com/getgrav/grav/commit/ad9709f865b09b68798fb1ac375b484a8cc1d892 and the vendor security advisory is at https://github.com/getgrav/grav/security/advisories/GHSA-269c-h76q-8cxw. If immediate patching is not feasible, restrict page-editor account creation strictly to fully trusted individuals, since holding that role is the necessary precondition for exploitation; this is a configuration control rather than a technical fix and does not eliminate the underlying flaw. Web application firewall rules targeting the quoted-> bypass pattern may reduce surface area but must not substitute for patching, as the bypass has many possible encoding and mutation variants. Disabling public page access is not a practical workaround for most production deployments.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Grav is a PHP flat-file CMS (CPE: cpe:2.3:a:getgrav:grav). The vulnerable code resides in system/src/Grav/Common/Security.php within the Security::detectXss() function. The detector uses a regex anchored at < with a [^>]*? quantifier to locate HTML event-handler attributes; this pattern stops at the first literal > it encounters. When a > appears inside a properly quoted attribute value such as title=">", the regex incorrectly concludes the HTML tag has ended at that character, terminating its scan before it reaches a subsequent event-handler attribute like onerror. The browser, following HTML5 parsing rules, correctly treats the > as part of the quoted attribute value and continues reading the tag, ultimately executing the injected handler. This is a CWE-79 (Improper Neutralization of Input During Web Page Generation - XSS) defect rooted in a fundamental mismatch between the server-side sanitizer's simplified regex model of HTML and the browser's full spec-compliant HTML parser.
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:L/SI:L/SA:N
Page-editor account required (PR:L); victim must view the page (UI:R); stored XSS crosses security boundary to victim browser scope (S:C); no server confidentiality or availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Grav versions from 1.5.2 through 2.0.12 contain a stored cross-site scripting vulnerability in the Security::detectXss() function (system/src/Grav/Common/Security.php). The event-handler scan is anchored at < and uses [^>]*?, which cannot cross the first literal >; when a > appears inside a quoted attribute value the browser keeps the tag open and parses a subsequent event handler (e.g. onerror), so the detector and browser disagree. A page editor without admin.super privileges can save page content such as <img src=x title=">" onerror=alert(document.domain)>, which is accepted, stored, and executed in the site origin when any visitor (including unauthenticated users) views the page. Fixed in 2.0.13.
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-58646
GHSA-269c-h76q-8cxw
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB