Grav CMS CVE-2026-44737
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCompromise admin credentials
-
DeliveryAuthenticate to admin panel
-
ExploitNavigate to page editor
-
InstallInject XSS payload in title field
-
C2Save page
-
ExecuteVictim admin accesses page editor
-
ImpactScript executes in victim's session
-
Step 8Steal session cookie or perform admin actions
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 | This vulnerability requires the attacker to have authenticated access to the Grav admin panel with sufficient permissions to create or edit pages. Exploitation is not possible against unauthenticated users or non-admin accounts. The payload must be injected via the admin page editor interface (the data[header][title] field), not via direct URL manipulation. The XSS executes when any admin user accesses the page editor or uses the page move function to view folders containing the malicious page. Grav must be running on a web server with the admin panel accessible; headless or API-only deployments without admin UI are not affected. The vulnerability does not require non-standard configuration - it affects default Grav installations with admin functionality enabled. Mitigation requires admin authentication as a prerequisite, but impact extends to all subsequent admin users who interact with the poisoned page. |
| Impact | This is a high-impact vulnerability despite missing CVSS scoring. The risk assessment must account for conflicting signals: the advisory describes it as stored XSS (persistent, high-impact) but requires prior admin authentication to inject the payload, which significantly limits real-world exploitation scope. CVSS vector data is unavailable from the input, but the description indicates authentication is required (PR:H - admin user must create/edit pages), scope is likely changed (XSS executes in admin context), and impact is high (session theft, impersonation). The attack vector is network-accessible (admin panel via HTTP/HTTPS). While exploit code exists and the vulnerability is confirmed in the official GitHub advisory, the requirement for authenticated admin access means this is not a remote unauthenticated attack. The practical risk depends heavily on Grav deployment: if admins are trusted users in closed environments, risk is lower; if Grav is multi-tenant or subject to compromised admin accounts, risk is substantial. The tags include 'RCE' but the advisory describes only XSS - RCE may be a secondary impact via script execution but is not directly confirmed. |
| Exploit ScenarioDerived | An attacker with Grav admin credentials (obtained through credential compromise, weak password, or insider threat) logs into the admin panel, navigates to the Pages section, creates or edits a page, and injects the payload '<img src=1 onerror=alert(1)>' into the page title field. Upon saving, the payload is stored in the page's configuration file. When another admin user accesses the page editor or clicks the move function to manage the page folder, the injected script executes in their browser context with full admin session privileges, allowing the attacker to steal session cookies, perform administrative actions, or modify site content. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 08, 2026
Stored cross-site scripting in Grav admin panel allows authenticated attackers to inject malicious JavaScript into page titles via the data[header][title] parameter, which is then executed when other administrators access the affected page or its move function. The vulnerability requires admin authentication to inject the payload but affects all subsequent viewers, enabling session hijacking, credential theft, and administrative impersonation. Publicly available exploit code exists with working proof-of-concept screenshots.
RemediationAI
Upgrade Grav immediately to version 1.7.49.5 or later, which includes input sanitization for the data[header][title] parameter. Patch is available via composer with command 'composer update getgrav/grav'. For organizations unable to patch immediately, implement the following compensating controls: restrict admin panel access via network ACLs to trusted IP ranges only; enable HTTP-only and Secure flags on admin session cookies to prevent script access; conduct audit of existing pages for XSS payloads in title fields and sanitize or delete suspicious content; monitor admin panel access logs for unusual activity. Note that firewall-based restrictions do not prevent exploitation by legitimate compromised admin accounts, so patching remains essential. See GitHub advisory GHSA-fmg2-f5r9-24qc for additional details and timeline.
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 flat-file content management system built on PHP. The vulnerability resides in the /admin/pages/[page] endpoint, specifically the data[header][title] parameter used for page metadata. The root cause is improper input sanitization in the admin panel's page editor, allowing HTML and JavaScript to be stored directly in page headers without escaping. CWE-79 (Improper Neutralization of Input During Web Page Generation) indicates the application fails to encode user-supplied data before rendering it in the admin interface. The stored nature means the payload persists in the page configuration file and executes whenever the page or its metadata is displayed, affecting all users with access to that admin section.
Know when the next one hits your stack
- 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:H/UI:A/VC:L/VI:L/VA:N/SC:H/SI:H/SA:H
Primary rating from Vendor (https://github.com/getgrav/grav) · only source for this CVE.
CVSS VectorVendor: https://github.com/getgrav/grav
Lifecycle Timeline
2DescriptionCVE.org
Summary
_A Stored Cross-Site Scripting (XSS) vulnerability was identified in the /admin/pages/[page] endpoint of the Grav application. This vulnerability allows attackers to inject malicious scripts into the data[header][title] parameter._
---
Details
Vulnerable Endpoint: GET /admin/pages/[page] Parameter: data[header][title]
The application fails to properly validate and sanitize user input in the data[header][title] parameter. As a result, attackers can craft a malicious URL with an XSS payload. When this URL is accessed, the injected script is reflected back in the HTTP response and executed within the context of the victim's browser session.
---
PoC
Payload: <img src=1 onerror=alert(1)>
- Log in to the Grav Admin Panel and navigate to Pages.
- Create a new page or edit an existing one.
- Edit title of the page to
<img src=1 onerror=alert(1)>
<img width="1897" height="700" alt="image" src="https://github.com/user-attachments/assets/77a129ca-5c2b-4743-8c56-c17fa456eefa" />
- Save page
- Open the move function and click on the folder having the payload
<img width="1904" height="984" alt="image" src="https://github.com/user-attachments/assets/44f8f88f-76c4-449f-8c4e-11e8e2c51d8f" />
<img width="1902" height="995" alt="image" src="https://github.com/user-attachments/assets/1dc2ef15-e534-4e87-93ea-92bc573af7f1" />
---
Impact
Stored cross-site scripting (XSS) attacks can have serious consequences, including:
- User actions: Attackers can perform actions on behalf of the user
- Data theft: Sensitive information such as session cookies can be stolen
- Account compromise: Attackers may impersonate legitimate users
- Malicious code execution: Arbitrary JavaScript code can run in the user’s browser
- Website defacement or misinformation: Malicious output may be injected visually
- User redirection: Victims may be redirected to phishing or malicious websites
By Vu Duc Hieu Contributor Simon Tran
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.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
GHSA-fmg2-f5r9-24qc
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB