Skip to main content

Grav CMS CVE-2026-72832

| EUVDEUVD-2026-58646 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. Access
    Obtain page-editor account
  2. Delivery
    Craft payload embedding `>` inside quoted attribute value
  3. Exploit
    Save page, bypassing Security::detectXss() regex
  4. Execution
    Any visitor loads affected page
  5. Persist
    Browser executes injected onerror handler
  6. Impact
    Steal 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 admin.super (full administrator) rights, making this accessible to broadly-delegated editor roles. The attacker must be able to save and publish a page visible to other users. Victim interaction is limited to loading the affected page in a standard browser with JavaScript enabled - no special browser configuration, plugin, or user action beyond page navigation is required. Limiting factors: (1) the attacker must already possess a valid page-editor credential; (2) the site must delegate page-editing access to accounts that are not fully trusted; (3) JavaScript must be enabled in the victim's browser (default in virtually all browsers); (4) impact is scoped to the site origin - no cross-origin privilege escalation is enabled by this flaw. No non-default Grav configuration is required; the vulnerability exists in the default page-save code path.

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 <img src=x title=">" onerror=alert(document.domain)>. The flawed regex in Security::detectXss() encounters the > inside the title attribute and incorrectly treats the tag as closed, passing the payload as safe and storing it in the CMS. Every subsequent visitor to that page - including unauthenticated users - has the onerror handler execute in the site origin, enabling session-cookie theft, CSRF-equivalent actions, or user redirection to attacker-controlled pages.

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

grav patch: 0

Affected Packages

composer getgrav/grav fix: 2.0.13

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

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:L/SI:L/SA:N
vuln.today AI 5.4 MEDIUM

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.

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:L/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
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
popular PHP flat-file CMS, moderate but not ubiquitous production deployment
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
Poc
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