Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-66311: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav

0
Medium
VulnerabilityCVE-2025-66311cvecve-2025-66311cwe-79
Published: Mon Dec 01 2025 (12/01/2025, 22:05:17 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: grav

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][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. This vulnerability is fixed in 1.11.0-beta.1.

AI-Powered Analysis

AILast updated: 12/01/2025, 22:54:13 UTC

Technical Analysis

CVE-2025-66311 is a stored Cross-Site Scripting (XSS) vulnerability identified in the Grav CMS admin plugin, specifically affecting versions prior to 1.11.0-beta.1. Grav is a flat-file content management system that uses an admin plugin to provide a user-friendly HTML interface for configuring the system and managing content. The vulnerability resides in the /admin/pages/[page] endpoint, where user-supplied input in the parameters data[header][metadata], data[header][taxonomy][category], and data[header][taxonomy][tag] is not properly sanitized or neutralized before being stored in the page frontmatter. This improper input handling allows attackers with administrative privileges to inject malicious JavaScript code that is persistently stored and executed whenever the affected page is accessed or rendered within the administrative interface. The vulnerability leverages CWE-79, indicating improper neutralization of input during web page generation. Exploitation requires an attacker to have authenticated access with high privileges to the Grav admin panel and involves user interaction to trigger the malicious script execution. The CVSS 4.0 vector indicates network attack vector (AV:N), low attack complexity (AC:L), no attack prerequisites (AT:N), high privileges required (PR:H), user interaction required (UI:A), low impact on confidentiality and integrity (VC:L, VI:L), no impact on availability (VA:N), and high scope and impact on security and safety (SC:H, SI:H, SA:H). Although no known exploits are reported in the wild, the vulnerability poses a significant risk to administrative users and the integrity of the CMS environment. The issue is addressed in Grav admin plugin version 1.11.0-beta.1 by implementing proper input validation and sanitization to prevent script injection.

Potential Impact

For European organizations using Grav CMS with the vulnerable admin plugin versions, this stored XSS vulnerability can lead to significant security risks. An attacker with administrative access could inject malicious scripts that execute in the context of the admin interface, potentially leading to session hijacking, credential theft, or unauthorized administrative actions. This compromises the confidentiality and integrity of the CMS and its managed content. Given that Grav is used by small to medium enterprises and developers valuing lightweight CMS solutions, organizations relying on it for public-facing websites or internal portals may face defacement, data manipulation, or further lateral attacks within their networks. The requirement for high privileges limits the attack surface but insider threats or compromised admin accounts increase risk. The vulnerability could also be leveraged as a foothold for supply chain attacks if attackers modify content or configurations. The impact on availability is minimal, but the reputational damage and potential data breaches could be substantial. European organizations in sectors such as media, education, and government that use Grav may be particularly sensitive to such compromises, especially under GDPR regulations concerning data protection and breach notification.

Mitigation Recommendations

European organizations should immediately upgrade the Grav admin plugin to version 1.11.0-beta.1 or later to apply the official fix. Until the upgrade is possible, restrict administrative access to trusted personnel and enforce strong authentication mechanisms, including multi-factor authentication (MFA), to reduce the risk of credential compromise. Implement strict input validation and sanitization on all user inputs at the application level, especially for metadata and taxonomy fields, to prevent injection of malicious scripts. Regularly audit and monitor admin interface logs for unusual activities or unexpected content changes in page frontmatter. Employ Content Security Policy (CSP) headers to limit the execution of unauthorized scripts within the admin interface. Conduct periodic security training for administrators to recognize phishing and social engineering attempts that could lead to account compromise. Additionally, isolate the Grav admin interface behind VPNs or IP whitelisting to reduce exposure. Backup Grav content and configurations regularly to enable quick restoration if an attack occurs. Finally, consider deploying web application firewalls (WAFs) with custom rules to detect and block XSS payloads targeting the vulnerable parameters.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2025-11-26T23:11:46.396Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 692e19186dbd3477d74d63e0

Added to database: 12/1/2025, 10:39:20 PM

Last enriched: 12/1/2025, 10:54:13 PM

Last updated: 12/1/2025, 11:45:58 PM

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats