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-2026-30977

CVE-2026-30977: MediaWiki RenderBlocking XSS Vulnerability

CVE-2026-30977 is a stored cross-site scripting flaw in the MediaWiki RenderBlocking extension that affects Inline Assets mode. This article covers the technical details, affected versions, and mitigation strategies.

Published: March 13, 2026

CVE-2026-30977 Overview

CVE-2026-30977 is a Stored Cross-Site Scripting (XSS) vulnerability affecting the RenderBlocking extension for MediaWiki. This extension allows interface administrators to specify render-blocking CSS and JavaScript for wiki pages. Prior to version 0.1.1, the extension is vulnerable to Stored XSS in the renderblocking-css component when Inline Assets mode is enabled.

The vulnerability requires specific conditions to be exploited: the configuration variable $wgRenderBlockingInlineAssets must be set to true, and the attacker must possess editsitecss user rights. While these prerequisites limit the attack surface, successful exploitation could allow a privileged attacker to inject persistent malicious scripts into wiki pages.

Critical Impact

Authenticated attackers with interface administrator privileges can inject persistent malicious JavaScript that executes in the context of other users viewing affected wiki pages.

Affected Products

  • RenderBlocking MediaWiki Extension versions prior to 0.1.1
  • MediaWiki installations with RenderBlocking extension and $wgRenderBlockingInlineAssets = true
  • Systems where users have editsitecss permissions

Discovery Timeline

  • 2026-03-10 - CVE CVE-2026-30977 published to NVD
  • 2026-03-11 - Last updated in NVD database

Technical Details for CVE-2026-30977

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The flaw exists in how the RenderBlocking extension handles inline CSS and JavaScript content when injecting it into the page output.

The root issue stems from the use of Html::rawElement() to insert user-controlled CSS and JavaScript content directly into the page's HTML head section. This method does not perform proper sanitization or encoding of the input, allowing malicious script content to be interpreted and executed by browsers.

When Inline Assets mode is enabled ($wgRenderBlockingInlineAssets = true), the extension takes CSS content from site configuration pages and embeds it directly into the rendered HTML. An attacker with editsitecss privileges can craft malicious CSS or JavaScript that, when processed by Html::rawElement(), results in script execution in visitors' browsers.

Root Cause

The vulnerability originates in the addInlineAssets() method within includes/RenderBlockingHooks.php. The function used Html::rawElement() to construct <style> and <script> tags, which passes content through without proper sanitization. This approach trusts the input content implicitly, violating the security principle of input validation for web content.

Attack Vector

The attack requires network access and involves an authenticated attacker with elevated privileges (editsitecss rights). The attacker would:

  1. Obtain or possess editsitecss user rights on the target MediaWiki installation
  2. Ensure the target wiki has $wgRenderBlockingInlineAssets set to true
  3. Edit the site CSS configuration to include malicious JavaScript payload disguised as or embedded within CSS content
  4. When any user visits a page rendered with the RenderBlocking extension, the malicious script executes in their browser context
php
// Security patch in includes/RenderBlockingHooks.php
// Source: https://github.com/lihaohong6/RenderBlocking/commit/096fc47dad9dca153b02cba3db81f412c87fb2be

 
 	private function addInlineAssets( OutputPage $out, string $css, string $js ): void {
 		if ( $css ) {
-			$out->addHeadItem( 'renderblocking-css', Html::rawElement( 'style', [], $css ) );
+			$out->addHeadItem( 'renderblocking-css', Html::inlineStyle( $css ) );
 		}
 		if ( $js ) {
-			$out->addHeadItem( 'renderblocking-js', Html::rawElement( 'script', [], $js ) );
+			$out->addHeadItem( 'renderblocking-js', Html::inlineScript( $js ) );
 		}
 	}

The fix replaces Html::rawElement() with MediaWiki's safer Html::inlineStyle() and Html::inlineScript() methods, which properly sanitize content before insertion into the DOM.

Detection Methods for CVE-2026-30977

Indicators of Compromise

  • Unusual or obfuscated content in MediaWiki site CSS configuration pages
  • Unexpected JavaScript or encoded script patterns within CSS files edited by users with editsitecss privileges
  • Browser console errors or unexpected network requests originating from wiki pages
  • User reports of unexpected behavior when viewing wiki pages

Detection Strategies

  • Review audit logs for modifications to site CSS pages by users with editsitecss permissions
  • Implement Content Security Policy (CSP) headers to detect and block unauthorized script execution
  • Monitor for changes to the MediaWiki:Common.css and related configuration pages
  • Deploy web application firewalls (WAF) with rules to detect XSS patterns in CSS content

Monitoring Recommendations

  • Enable verbose logging for MediaWiki page edits, particularly for system namespace pages
  • Configure alerts for modifications to site-wide CSS and JavaScript configuration pages
  • Regularly audit users with elevated permissions such as editsitecss and interface-admin
  • Implement file integrity monitoring on MediaWiki extension directories

How to Mitigate CVE-2026-30977

Immediate Actions Required

  • Upgrade the RenderBlocking extension to version 0.1.1 or later immediately
  • Audit all users with editsitecss permissions and remove unnecessary access
  • Review recent changes to site CSS configuration for potentially malicious content
  • Consider temporarily disabling Inline Assets mode by setting $wgRenderBlockingInlineAssets = false

Patch Information

The vulnerability has been fixed in RenderBlocking version 0.1.1. The patch is available through the GitHub Release v0.1.1. Administrators should update their MediaWiki extensions to this version or later to remediate the vulnerability.

The specific security fix can be reviewed in the GitHub Commit Details. Additional information is available in the GitHub Security Advisory GHSA-4h5r-8rjm-496r.

Workarounds

  • Disable Inline Assets mode by setting $wgRenderBlockingInlineAssets = false in LocalSettings.php
  • Restrict editsitecss permissions to only trusted administrators
  • Implement strict Content Security Policy headers to limit script execution sources
  • Consider disabling the RenderBlocking extension entirely until the patch can be applied
bash
# Configuration example - Disable Inline Assets mode in LocalSettings.php
# Add the following line to your MediaWiki LocalSettings.php file:
$wgRenderBlockingInlineAssets = false;

# Verify the extension version after updating:
php maintenance/showSiteStats.php | grep -i "render"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechMediawiki

  • SeverityLOW

  • CVSS Score2.0

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/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
  • Technical References
  • GitHub Commit Details

  • GitHub Release v0.1.1

  • GitHub Security Advisory GHSA-4h5r-8rjm-496r
  • Related CVEs
  • CVE-2026-30917: MediaWiki Bucket Extension XSS Vulnerability

  • CVE-2025-6595: Wikimedia MultimediaViewer XSS Vulnerability

  • CVE-2025-6594: MediaWiki XSS Vulnerability

  • CVE-2025-61640: MediaWiki XSS 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