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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2026-42611

CVE-2026-42611: Getgrav Grav RCE Vulnerability

CVE-2026-42611 is a remote code execution flaw in Getgrav Grav that allows low-privileged users to inject SVG elements leading to XSS and potential RCE. This article covers technical details, affected versions, and fixes.

Published: May 18, 2026

CVE-2026-42611 Overview

CVE-2026-42611 is a stored Cross-Site Scripting (XSS) vulnerability in Grav, a file-based Web platform, affecting versions prior to 2.0.0-beta.2. A low-privileged user with page creation permissions can inject malicious <svg> elements into Grav content. When a Super Admin views the affected page, the injected script executes in the administrator's session context. Attackers can escalate the XSS to exfiltrate system information from /admin/config/info and chain the attack with the admin-nonce token to achieve Remote Code Execution (RCE) [CWE-79]. The vulnerability is tracked under GitHub Security Advisory GHSA-w8cg-7jcj-4vv2 and fixed in version 2.0.0-beta.2.

Critical Impact

A low-privileged author account can compromise the entire Grav server by chaining stored SVG-based XSS with admin-nonce abuse to reach Remote Code Execution.

Affected Products

  • Getgrav Grav versions prior to 2.0.0-beta.2
  • Getgrav Grav 2.0.0-beta1
  • Grav Admin Panel (/admin/config/info endpoint)

Discovery Timeline

  • 2026-05-11 - CVE-2026-42611 published to NVD
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2026-42611

Vulnerability Analysis

The vulnerability resides in Grav's content rendering pipeline, which fails to sanitize <svg> elements supplied by authenticated low-privileged users. SVG documents support inline <script> tags and event handlers such as onload, allowing JavaScript execution when the page is rendered in a browser. Because Grav's admin interface renders user-created pages without sufficient output encoding, the injected payload runs with the Super Admin's privileges when they visit the affected page.

The attack chain proceeds in three stages. First, the attacker creates a page containing a crafted SVG payload. Second, when a Super Admin views the page, the script executes and fetches /admin/config/info, leaking environment, PHP, and Grav configuration data. Third, the script reads the admin-nonce value from the DOM and submits authenticated administrative actions, including operations that result in arbitrary code execution on the server.

Root Cause

The root cause is improper neutralization of input during page rendering [CWE-79]. Grav permitted SVG element injection within page content and trusted the rendered output in the admin context. Related media handling routines also accepted attacker-controlled attribute names, which could carry inline event handlers onto image tags.

Attack Vector

Exploitation requires an authenticated user with page-creation rights and a Super Admin who subsequently views the malicious page. The attack is network-reachable, has low complexity, and requires user interaction from the privileged victim.

php
// Patch excerpt: system/src/Grav/Common/Media/Traits/MediaObjectTrait.php
// Restricts attribute names to safe HTML identifiers, rejecting event
// handlers (on*), inline style, xmlns, srcdoc, and form* attributes.
public function attribute($attribute = null, $value = '')
{
    if (empty($attribute) || !is_string($attribute)) {
        return $this;
    }
    if (!self::isSafeAttributeName($attribute)) {
        return $this;
    }
    $this->attributes[$attribute] = $value;
    return $this;
}

Source: Grav security commit 5a12f9be

Detection Methods for CVE-2026-42611

Indicators of Compromise

  • Grav page content (Markdown or frontmatter) containing <svg> elements with inline <script>, onload, or other on* event handlers.
  • Unexpected outbound or same-origin requests to /admin/config/info originating from a Super Admin browser session.
  • Administrative actions submitted with valid admin-nonce values shortly after a Super Admin opened a page authored by a low-privileged user.
  • New plugins, themes, or PHP files written under the Grav web root without a corresponding admin-initiated installation.

Detection Strategies

  • Scan the user/pages/ directory for SVG markup, javascript: URIs, and on* event-handler attributes inside page Markdown and frontmatter.
  • Monitor web server access logs for sequential requests to /admin/config/info followed by state-changing /admin/* POST requests within the same session.
  • Review Grav admin audit logs for plugin or theme installation events that do not correlate with legitimate administrator activity.

Monitoring Recommendations

  • Alert on creation or modification of pages by non-admin Grav accounts that contain <svg, <script, or on[a-z]+= patterns.
  • Track Super Admin sessions for anomalous DOM-driven requests immediately after viewing user-authored content.
  • Capture file integrity events under user/plugins/, user/themes/, and system/ directories of the Grav installation.

How to Mitigate CVE-2026-42611

Immediate Actions Required

  • Upgrade Grav to version 2.0.0-beta.2 or later on all instances exposing the admin panel.
  • Audit existing pages authored by low-privileged users and remove any SVG, script, or event-handler content.
  • Rotate Super Admin credentials and invalidate active admin sessions if exploitation is suspected.
  • Review installed plugins and themes for unauthorized additions or modifications since the vulnerable version was deployed.

Patch Information

The fix is delivered in commit 5a12f9be8314682c8713e569e330f11805d0a663 and shipped in Grav 2.0.0-beta.2. The patch hardens archive extraction against Zip Slip, restricts attribute names accepted by MediaObjectTrait::attribute() to safe identifiers, and rejects event-handler and srcdoc-style names. Details are available in the Grav GitHub Security Advisory GHSA-w8cg-7jcj-4vv2.

Workarounds

  • Restrict page creation and editing permissions to trusted administrators until the upgrade is applied.
  • Place the Grav admin panel behind network controls such as IP allow-listing or VPN access to limit who can view authored pages.
  • Apply a Content Security Policy that disallows inline scripts on admin routes to reduce the impact of injected SVG payloads.
bash
# Verify and upgrade Grav using the bundled CLI
php bin/gpm version
php bin/gpm selfupgrade -f
php bin/gpm version  # Confirm 2.0.0-beta.2 or later

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGetgrav Grav

  • SeverityHIGH

  • CVSS Score8.9

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityHigh
  • CWE References
  • CWE-79
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-66297: Getgrav Grav CMS RCE Vulnerability

  • CVE-2025-66299: Getgrav Grav SSTI RCE Vulnerability

  • CVE-2026-42608: Getgrav Grav Path Traversal Vulnerability

  • CVE-2026-42612: Getgrav Grav XSS Vulnerability
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