The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-66312

CVE-2025-66312: Grav Admin Plugin Stored XSS Vulnerability

CVE-2025-66312 is a stored cross-site scripting vulnerability in Grav Admin Plugin that allows attackers to inject malicious scripts via the accounts endpoint. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-66312 Overview

CVE-2025-66312 is a Stored Cross-Site Scripting (XSS) vulnerability identified in the Grav Admin Plugin, which provides an HTML user interface for configuring Grav CMS and managing pages. The vulnerability exists in the /admin/accounts/groups/Grupo endpoint, allowing attackers to inject malicious scripts into the data[readableName] parameter. Once injected, these scripts are stored on the server and automatically executed whenever the affected page is accessed by users, creating a persistent attack vector that poses significant security risks to administrators and users of affected Grav installations.

Critical Impact

Attackers with high privileges can inject persistent malicious scripts that execute in the context of other users' sessions, potentially leading to session hijacking, credential theft, administrative account compromise, and further attacks against the CMS infrastructure.

Affected Products

  • Grav Admin Plugin versions prior to 1.11.0-beta.1
  • getgrav grav-plugin-admin

Discovery Timeline

  • December 1, 2025 - CVE-2025-66312 published to NVD
  • December 3, 2025 - Last updated in NVD database

Technical Details for CVE-2025-66312

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The Grav Admin Plugin prior to version 1.11.0-beta.1 fails to properly sanitize user-supplied input in the data[readableName] parameter when creating or modifying account groups. The stored nature of this XSS vulnerability makes it particularly dangerous, as the malicious payload persists in the application's database and executes automatically for any user who accesses the affected page.

The vulnerability has been assigned a CVSS 4.0 score of 6.2 (Medium) with vector 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X. While the attack requires high privileges (PR:H) and active user interaction (UI:A), the subsequent system impact is high for confidentiality, integrity, and availability of downstream components.

The EPSS (Exploit Prediction Scoring System) indicates a probability of 0.028% with a percentile rank of 7.159 as of December 16, 2025, suggesting relatively low likelihood of active exploitation in the wild.

Root Cause

The root cause of this vulnerability stems from insufficient input validation and output encoding in the Grav Admin Plugin's group management functionality. When user input is accepted for the readableName field, it is not properly sanitized before being stored in the database or rendered back to users in the HTML context. This allows HTML and JavaScript content to be embedded within what should be a plain text field.

The security patch implemented safe rendering functions that properly escape HTML content to prevent XSS attacks across multiple components of the admin interface.

Attack Vector

The attack vector is network-based (AV:N), requiring an authenticated attacker with administrative privileges to exploit the vulnerability. The attack flow involves:

  1. An attacker with high-level privileges accesses the /admin/accounts/groups/Grupo endpoint
  2. The attacker injects malicious JavaScript code into the data[readableName] parameter
  3. The malicious payload is stored in the application database without proper sanitization
  4. When other administrators or users access the affected groups page, the stored script executes in their browser context
  5. The executed script can steal session tokens, perform actions on behalf of the victim, or exfiltrate sensitive data

The security fix introduces safe rendering functions that properly escape user input:

javascript
// Security: Default render functions that escape HTML to prevent XSS
// (GHSA-65mj-f7p4-wggq, GHSA-7g78-5g5g-mvfj, GHSA-mpjj-4688-3fxg)
const SafeRender = {
    option: function(item, escape) {
        return `<div>${escape(item.text || item.value)}</div>`;
    },
    item: function(item, escape) {
        return `<div>${escape(item.text || item.value)}</div>`;
    }
};

export default class SelectizeField {
    constructor(options = {}) {
        this.options = Object.assign({}, options);

Source: https://github.com/getgrav/grav-plugin-admin/commit/99f653296504f1d6408510dd2f6f20a45a26f9b0

The patch also addresses related security concerns including user enumeration through error messages:

php
 
            $interval = $config->get('plugins.login.max_pw_resets_interval', 2);
 
-            $this->setMessage($this->translate('PLUGIN_LOGIN.FORGOT_CANNOT_RESET_IT_IS_BLOCKED', $to, $interval), 'error');
+            // Security: Use generic message to prevent email enumeration (GHSA-q3qx-cp62-f6m7)
+            $this->setMessage($this->translate('PLUGIN_ADMIN.FORGOT_CANNOT_RESET_RATE_LIMITED', $interval), 'error');
 
            return $this->createRedirectResponse($current);
        }

Source: https://github.com/getgrav/grav-plugin-admin/commit/99f653296504f1d6408510dd2f6f20a45a26f9b0

Detection Methods for CVE-2025-66312

Indicators of Compromise

  • Unusual JavaScript code or HTML tags present in group readable names within the Grav admin database
  • Unexpected script execution or redirect behavior when accessing the /admin/accounts/groups/ endpoints
  • Network requests to external domains originating from the Grav admin panel that were not initiated by legitimate administrator actions
  • Session token exfiltration attempts visible in web server access logs

Detection Strategies

Organizations can implement several detection strategies to identify exploitation attempts:

Log Analysis: Monitor web server access logs for suspicious POST requests to /admin/accounts/groups/ endpoints containing script tags, event handlers (e.g., onerror, onload), or encoded JavaScript payloads in the data[readableName] parameter.

Database Auditing: Periodically audit the Grav database for stored content containing potentially malicious patterns such as <script>, javascript:, or HTML event attributes in fields that should contain plain text.

Web Application Firewall (WAF): Configure WAF rules to detect and block requests containing XSS payloads targeting the Grav admin interface endpoints.

Content Security Policy Monitoring: Implement CSP headers with report-uri to receive notifications when inline scripts attempt to execute, which could indicate XSS exploitation.

Monitoring Recommendations

Deploy runtime application self-protection (RASP) solutions to detect and block XSS attacks at the application layer. Implement strict Content Security Policy (CSP) headers that prevent inline script execution and restrict script sources to trusted domains. Enable comprehensive audit logging for all administrative actions within the Grav CMS, particularly those involving user and group management. Utilize SentinelOne's Singularity platform to monitor endpoint behavior for suspicious browser activities and potential credential theft attempts following successful XSS exploitation.

How to Mitigate CVE-2025-66312

Immediate Actions Required

  • Upgrade the Grav Admin Plugin to version 1.11.0-beta.1 or later immediately
  • Review existing group configurations for any suspicious content in the readableName field and sanitize if necessary
  • Implement Content Security Policy (CSP) headers to mitigate the impact of any unpatched or zero-day XSS vulnerabilities
  • Restrict administrative access to trusted IP addresses and ensure multi-factor authentication is enabled for all admin accounts

Patch Information

The vulnerability has been addressed in Grav Admin Plugin version 1.11.0-beta.1. The security patch is available through the official Grav repository at commit 99f653296504f1d6408510dd2f6f20a45a26f9b0. Organizations should update their Grav installations using the built-in update mechanism or by manually applying the patched version. The official security advisory is available at: https://github.com/getgrav/grav/security/advisories/GHSA-rmw5-f87r-w988

Workarounds

If immediate patching is not possible, organizations can implement temporary mitigations:

bash
# Configure nginx to add Content Security Policy headers for Grav admin
location /admin {
    add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-ancestors 'none';" always;
    add_header X-Content-Type-Options "nosniff" always;
    add_header X-XSS-Protection "1; mode=block" always;
    
    # Restrict admin access to trusted IP ranges
    allow 10.0.0.0/8;
    allow 192.168.1.0/24;
    deny all;
}

Additionally, implement input validation at the web application firewall level to block requests containing HTML or JavaScript in the data[readableName] parameter. Consider temporarily restricting access to the group management functionality until the patch can be applied.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechGetgrav

  • SeverityMEDIUM

  • CVSS Score6.2

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Vendor Resources
  • Patch

  • Exploit, Vendor Advisory

  • Exploit, Vendor Advisory
  • Related CVEs
  • CVE-2025-66308: Grav-plugin-admin Stored XSS Vulnerability

  • CVE-2025-66311: Grav Admin Plugin Stored XSS Vulnerability

  • CVE-2025-66294: Getgrav Grav RCE Vulnerability

  • CVE-2025-66295: Getgrav Grav Path Traversal Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English