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/08/2025, 23:13:45 UTC

Technical Analysis

CVE-2025-66311 is a stored Cross-Site Scripting (XSS) vulnerability identified in the Grav content management system (CMS) admin plugin, specifically affecting versions prior to 1.11.0-beta.1. Grav is a flat-file CMS that uses an admin plugin providing an HTML user interface for configuring the system and managing pages. The vulnerability exists in the /admin/pages/[page] endpoint, where the application improperly neutralizes input in the data[header][metadata], data[header][taxonomy][category], and data[header][taxonomy][tag] parameters. An attacker with administrative privileges can inject malicious JavaScript code into these parameters, which is then stored persistently in the page frontmatter. When the affected page is accessed or rendered within the administrative interface, the malicious script executes automatically, potentially allowing session hijacking, privilege escalation, or other malicious actions within the admin context. The vulnerability requires authenticated access (administrator-level privileges) and some user interaction to trigger the payload execution. The CVSS 4.0 vector indicates network attack vector (AV:N), low attack complexity (AC:L), no privileges required (PR:H means high privileges required, so this is a discrepancy in the vector but the description clarifies admin privileges are needed), user interaction required (UI:A), low impact on confidentiality and integrity, no impact on availability, and high scope and security impact. No known exploits are currently reported in the wild. The issue was reserved on 2025-11-26 and published on 2025-12-01, with the fix introduced in version 1.11.0-beta.1 of the admin plugin.

Potential Impact

For European organizations using Grav CMS with the vulnerable admin plugin versions, this stored XSS vulnerability poses a significant risk to the confidentiality and integrity of their administrative sessions and website content. An attacker who gains administrative access can inject malicious scripts that execute whenever the affected page is accessed in the admin interface, potentially leading to session hijacking, unauthorized content modification, or further compromise of the CMS environment. This can result in defacement, data leakage, or the deployment of additional malware. Since Grav is often used by small to medium enterprises and public sector websites in Europe due to its lightweight and flexible nature, the impact could affect a broad range of organizations, including government agencies, educational institutions, and businesses relying on Grav for content management. The requirement for administrative privileges limits the attack surface but does not eliminate risk, especially if credential compromise or insider threats exist. The vulnerability could also be leveraged in targeted attacks against high-value European entities using Grav, especially those with less mature security practices.

Mitigation Recommendations

1. Immediate upgrade of the Grav admin plugin to version 1.11.0-beta.1 or later, where the vulnerability is fixed. 2. Implement strict access controls and multi-factor authentication (MFA) for all administrative accounts to reduce the risk of credential compromise. 3. Conduct regular audits of administrative user activity and page metadata to detect suspicious or unauthorized changes. 4. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts within the admin interface. 5. Sanitize and validate all user inputs at the application level, especially metadata and taxonomy fields, to prevent injection of malicious content. 6. Limit the number of users with administrative privileges and enforce the principle of least privilege. 7. Monitor logs for unusual access patterns or repeated attempts to inject scripts. 8. Educate administrators about the risks of stored XSS and safe content management practices. 9. If upgrading immediately is not feasible, consider temporarily restricting access to the admin interface to trusted IP addresses or VPNs.

Need more detailed analysis?Upgrade to Pro Console

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/8/2025, 11:13:45 PM

Last updated: 1/16/2026, 3:09:54 AM

Views: 81

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 more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats