getgrav/grav
Affected
- introduced
0, fixed1.11.0-beta.1(ecosystem)
Fixed versions
1.11.0-beta.1
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2025-66311
Grav vulnerable to Cross-Site Scripting (XSS) Stored endpoint /admin/pages/[page] in Multiples parameters
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][metadata], data[header][taxonomy][category], and data[header][taxonomy][tag] parameters. These scripts are stored in the page frontmatter and executed automatically whenever the affected page is accessed or rendered in the administrative interface.
---
Details
Vulnerable Endpoint: POST /admin/pages/[page]
Parameters:
data[header][metadata]data[header][taxonomy][category]data[header][taxonomy][tag]The application fails to properly sanitize user input when saving page metadata or taxonomy fields via the Admin Panel. As a result, an attacker with access to the admin interface can inject a malicious script using these parameters, and the script will be stored in the page's YAML frontmatter. When the page or metadata is rendered (especially in the Admin Panel), the payload is executed in the browser of any user with access.
---
PoC
Payload:
<script>alert('PoC-XXS51')</script>
Steps to Reproduce:
- Metadata key name
- Category under Taxonomy
- Tag under Taxonomy
image
When the page is loaded again in the Admin Panel or potentially on the frontend (depending on how the metadata is used), the script is executed, confirming the Stored XSS vulnerability.
---
Impact
Stored XSS vulnerabilities can result in serious consequences, including:
by CVE-Hunters
Medium Basis: The source's own band: MODERATE
0, fixed 1.11.0-beta.1 (ecosystem)1.11.0-beta.1
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0