Skip to main content

Grav CMS CVE-2026-44737

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-08 https://github.com/getgrav/grav GHSA-fmg2-f5r9-24qc
6.2
CVSS 4.0 · Vendor: https://github.com/getgrav/grav
View

Attack ChainAIDerived

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

  1. Recon
    Compromise admin credentials
  2. Delivery
    Authenticate to admin panel
  3. Exploit
    Navigate to page editor
  4. Install
    Inject XSS payload in title field
  5. C2
    Save page
  6. Execute
    Victim admin accesses page editor
  7. Impact
    Script executes in victim's session
  8. Step 8
    Steal 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.

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

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

Alert me

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

composer getgrav/grav fix: 1.7.49.5

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

Vendor (https://github.com/getgrav/grav) PRIMARY 6.2 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
Active
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
CVSS changed
May 11, 2026 - 17:22 NVD
6.2 (MEDIUM)
CVE Published
May 08, 2026 - 19:38 nvd
MEDIUM

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

  1. Log in to the Grav Admin Panel and navigate to Pages.
  2. Create a new page or edit an existing one.
  3. 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" />

  1. Save page
  2. 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

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
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 No
EPSS 0.0%
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

31
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +31
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.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

pkg:composer/getgrav_grav

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy