6.2medium
Grav vulnerable to Cross-Site Scripting (XSS) Stored endpoint `/admin/pages/[page]` parameter `data[header][template]` in Advanced Tab
- Severity
- 6.2medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.23% (higher than 14% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-7g78-5g5g-mvfj
Description
This admin plugin for Grav is an HTML user interface that provides a convenient way to configure Grav and easily create and modify pages. Prior to 1.11.0-beta.1, 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][template] parameter. The script is saved within the page's frontmatter and executed automatically whenever the affected content is rendered in the administrative interface or frontend view. This vulnerability is fixed in 1.11.0-beta.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| getgrav grav | < 1.11.0-beta.1 | CVE List |
| getgrav/grav (Packagist) | before 1.8.0-beta.27 | GitHub Advisory Database |
| getgrav grav-plugin-admin | up to 1.10.50 | NVD |
All scores
| GitHub_M | 6.2medium CVSS:4.0 | 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 |
| GitHub | medium CVSS:4.0 | 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 |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
This admin plugin for Grav is an HTML user interface that provides a convenient way to configure Grav and easily create and modify pages. Prior to 1.11.0-beta.1, 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][template] parameter. The script is saved within the page's frontmatter and executed automatically whenever the affected content is rendered in the administrative interface or frontend view. This vulnerability is fixed in 1.11.0-beta.1.
GitHub Advisory Database
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][template] parameter. The script is saved within the page's frontmatter and executed automatically whenever the affected content is rendered in the administrative interface or frontend view.
Details
Vulnerable Endpoint: POST /admin/pages/[page]
Parameter: data[header][template]
The application fails to properly sanitize user input in the data[header][template] field, which is stored in the YAML frontmatter of the page. An attacker can inject JavaScript code using this field, and the payload is rendered and executed when the page is accessed, especially within the Admin Panel interface.
PoC
Payload:
<script>alert('PoC-XXS73')</script>
Steps to Reproduce:
-
Log in to the Grav Admin Panel and navigate to Pages.
-
Create a new page or edit an existing one.
-
In the Advanced > Template field (which maps to
data[header][template]), insert the payload: image -
Save the page.
-
Return to the Pages section and click on the three-dot menu of the affected page: image
-
The stored XSS payload is triggered, and the script is executed in the browser: image
Impact
Stored XSS vulnerabilities can have serious consequences, including:
-
Session hijacking: Capturing admin session cookies or tokens
-
Malware delivery: Executing scripts that load malicious resources
-
Credential theft: Creating fake login prompts to steal usernames/passwords
-
Data exposure: Reading sensitive metadata or page contents
-
Privilege escalation: Performing actions as an authenticated user
-
Website defacement: Altering visual or functional elements of the site
-
Reputation damage: Undermining user trust in the application
by CVE-Hunters
NVD (es)
Este plugin de administración para Grav es una interfaz de usuario HTML que proporciona una forma conveniente de configurar Grav y crear y modificar páginas fácilmente. Versiones anteriores a 1.11.0-beta.1, se identificó una vulnerabilidad de Cross-Site Scripting Almacenado (XSS) en el endpoint /admin/pages/[page] de la aplicación Grav. Esta vulnerabilidad permite a los atacantes inyectar scripts maliciosos en el parámetro data[header][template]. El script se guarda dentro del frontmatter de la página y se ejecuta automáticamente cada vez que el contenido afectado se renderiza en la interfaz administrativa o en la vista de frontend. Esta vulnerabilidad está corregida en 1.11.0-beta.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-66310 changed 2025-12-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7g78-5g5g-mvfj changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-66310 changed 2026-06-17 | Public domain |