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-66310

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

CVE-2025-66310 is a stored XSS vulnerability in Grav Admin Plugin that allows attackers to inject malicious scripts via the page template parameter. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-66310 Overview

A Stored Cross-Site Scripting (XSS) vulnerability has been identified in the Grav Admin Plugin, an HTML user interface that provides a convenient way to configure Grav CMS and easily create and modify pages. This vulnerability exists in the /admin/pages/[page] endpoint and allows attackers to inject malicious scripts into the data[header][template] parameter. The injected script is saved within the page's frontmatter and executed automatically whenever the affected content is rendered in the administrative interface or frontend view.

This medium severity vulnerability (CVSS 6.2) poses a significant risk as it enables persistent script execution within the context of authenticated administrative sessions, potentially leading to session hijacking, privilege escalation, or unauthorized actions performed on behalf of administrators.

Critical Impact

Authenticated attackers with high privileges can inject persistent malicious scripts that execute in the context of other users viewing affected pages, potentially compromising administrative sessions and enabling further attacks against the Grav CMS installation.

Affected Products

  • getgrav grav-plugin-admin (versions prior to 1.11.0-beta.1)

Discovery Timeline

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

Technical Details for CVE-2025-66310

Vulnerability Analysis

The Stored XSS vulnerability (CWE-79) resides in the page editing functionality of the Grav Admin Plugin. When processing page template selections through the /admin/pages/[page] endpoint, the application fails to properly sanitize user-supplied input in the data[header][template] parameter before storing it in the page's frontmatter configuration.

The vulnerability carries a CVSS 4.0 score of 6.2 (Medium) with the vector string: 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

The EPSS score is 0.028% (7.159 percentile), indicating a relatively low probability of exploitation in the wild at this time.

Root Cause

The root cause of this vulnerability is improper input validation and insufficient output encoding in the template parameter handling. When users with administrative privileges modify page templates, the application stores the raw input directly into the page's YAML frontmatter without proper sanitization. Subsequently, when the page is rendered in either the administrative interface or the frontend view, the stored malicious script is executed in the browser context of any user viewing the affected content.

Attack Vector

This vulnerability is exploitable over the network and requires:

  1. High Privileges: The attacker must have administrative access to the Grav CMS installation
  2. User Interaction: A victim must view the affected page content for the script to execute

The attack flow involves an authenticated administrator navigating to a page editor, injecting malicious JavaScript code into the template parameter field, saving the page, and then waiting for other users (including other administrators) to view the affected page. The malicious script executes within the victim's browser session, potentially allowing the attacker to steal session tokens, perform actions as the victim, or redirect users to malicious sites.

The vulnerability mechanism involves insufficient sanitization of the data[header][template] parameter before storage in the page frontmatter. When the template value is later rendered in the administrative interface or frontend, the stored payload executes in the context of the viewing user's session. For technical details and proof-of-concept information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2025-66310

Indicators of Compromise

  • Unexpected JavaScript code present in page frontmatter template fields
  • Anomalous page template values containing <script> tags or event handlers (e.g., onerror, onclick)
  • Suspicious modifications to page configurations in the user/pages/ directory
  • Unusual administrative session activity following page views
  • Browser console errors or warnings related to Content Security Policy violations

Detection Strategies

Log Analysis:
Monitor Grav CMS access logs for POST requests to /admin/pages/[page] endpoints containing suspicious payloads in the template parameter. Look for URL-encoded JavaScript keywords such as %3Cscript, javascript:, or common XSS vectors.

File Integrity Monitoring:
Implement file integrity monitoring on the user/pages/ directory to detect unauthorized or suspicious modifications to page markdown files. Alert on any frontmatter changes containing HTML tags or JavaScript event handlers.

Content Inspection:
Regularly audit page frontmatter content for unexpected template values that deviate from legitimate template names. Legitimate template values should match existing template files in the theme directory.

Monitoring Recommendations

  1. Enable detailed access logging for all administrative endpoints
  2. Implement Content Security Policy (CSP) headers to mitigate the impact of successful XSS attacks
  3. Deploy Web Application Firewall (WAF) rules to detect and block XSS payloads in POST requests
  4. Configure real-time alerting for modifications to page frontmatter files
  5. Monitor browser console outputs in administrative sessions for unexpected script execution errors

How to Mitigate CVE-2025-66310

Immediate Actions Required

  • Update Grav Admin Plugin to version 1.11.0-beta.1 or later immediately
  • Audit existing page frontmatter files for any suspicious template values containing JavaScript code
  • Review administrative access logs for signs of exploitation attempts
  • Implement Content Security Policy headers to reduce the impact of potential XSS attacks
  • Restrict administrative access to trusted IP addresses where possible

Patch Information

The vulnerability has been fixed in Grav Admin Plugin version 1.11.0-beta.1. The patch is available in commit 99f653296504f1d6408510dd2f6f20a45a26f9b0.

Patch Resources:

  • GitHub Commit
  • Security Advisory GHSA-7g78-5g5g-mvfj

To update the Grav Admin Plugin, use the Grav Package Manager (GPM) or manually download and install the patched version from the official repository.

Workarounds

If immediate patching is not possible, consider the following temporary mitigations:

  1. Restrict Administrative Access: Limit administrative panel access to trusted users only and implement additional authentication controls such as IP whitelisting or VPN requirements.

  2. Implement Web Application Firewall Rules: Configure WAF rules to inspect and filter POST requests to /admin/pages/ endpoints, blocking requests containing HTML tags or JavaScript code in the template parameter.

  3. Deploy Content Security Policy: Add strict CSP headers to prevent inline script execution, which can significantly reduce the impact of stored XSS attacks.

bash
# Example Apache .htaccess configuration for CSP headers
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self';"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechGrav

  • 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-66309: Grav-plugin-admin XSS Vulnerability

  • CVE-2025-66307: Grav Admin Plugin Info Disclosure Flaw
Default Legacy - Prefooter | 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