Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-22712

CVE-2026-22712: MediaWiki ApprovedRevs Extension XSS Flaw

CVE-2026-22712 is a cross-site scripting vulnerability in the MediaWiki ApprovedRevs Extension caused by improper output encoding. This article covers the technical details, affected versions, and mitigation strategies.

Updated: January 22, 2026

CVE-2026-22712 Overview

CVE-2026-22712 is an Improper Encoding or Escaping of Output vulnerability (CWE-116) affecting The Wikimedia Foundation's MediaWiki ApprovedRevs Extension. The vulnerability stems from improper handling of magic word replacement within the ParserAfterTidy hook, which allows attackers to perform Input Data Manipulation attacks against affected MediaWiki installations.

The ApprovedRevs extension provides functionality for designating specific revisions of wiki pages as "approved," displaying those versions to readers while editors continue working on newer drafts. The vulnerability occurs during the parsing phase when magic words are processed, allowing malicious input to bypass proper encoding mechanisms.

Critical Impact

Attackers can manipulate input data through improper encoding in the ParserAfterTidy hook, potentially affecting content integrity on MediaWiki sites using the ApprovedRevs extension.

Affected Products

  • MediaWiki - ApprovedRevs Extension version 1.45
  • MediaWiki - ApprovedRevs Extension version 1.44
  • MediaWiki - ApprovedRevs Extension version 1.43
  • MediaWiki - ApprovedRevs Extension version 1.39

Discovery Timeline

  • January 9, 2026 - CVE-2026-22712 published to NVD
  • January 9, 2026 - Last updated in NVD database

Technical Details for CVE-2026-22712

Vulnerability Analysis

This vulnerability is classified as CWE-116: Improper Encoding or Escaping of Output. The issue resides in how the ApprovedRevs extension handles magic word replacement during the ParserAfterTidy hook execution phase.

In MediaWiki's architecture, the ParserAfterTidy hook is invoked after the HTML has been tidied and just before it is added to the parser cache. The ApprovedRevs extension uses this hook to process and replace magic words with appropriate content. However, the implementation fails to properly encode or escape output during this replacement process, creating an opportunity for input data manipulation.

The network-accessible attack vector requires some user interaction, limiting the immediate exploitability. However, the vulnerability can affect confidentiality, integrity, and availability at a limited scope on both the vulnerable system and potentially connected systems.

Root Cause

The root cause lies in the magic word replacement logic within the ParserAfterTidy hook handler. When processing magic words like {{APPROVALYEAR}} or similar ApprovedRevs-specific parser functions, the extension fails to properly sanitize or encode the output before inserting it into the parsed HTML content.

This improper encoding allows specially crafted input to pass through the parsing pipeline without appropriate escaping, enabling attackers to manipulate how data is interpreted or displayed. The vulnerability is a direct result of trusting user-controlled input during the output generation phase without applying proper encoding transformations.

Attack Vector

The attack vector is network-based, meaning exploitation can occur remotely over the network. The attack requires:

  1. A MediaWiki installation with the vulnerable ApprovedRevs extension enabled
  2. The ability to create or edit wiki content (depending on wiki permissions)
  3. User interaction with the manipulated content

An attacker would craft malicious wiki content containing specially formed magic words or parser constructs that exploit the improper encoding during the ParserAfterTidy phase. When the content is processed and rendered, the lack of proper output encoding allows the attacker's manipulated data to be interpreted in unintended ways.

The vulnerability mechanism involves the parser hook processing flow where magic word tokens are replaced with their computed values. Due to missing output encoding, the replacement values can contain characters or sequences that alter the interpretation of surrounding content.

Detection Methods for CVE-2026-22712

Indicators of Compromise

  • Unusual or unexpected content appearing on wiki pages that use ApprovedRevs functionality
  • Parser cache entries containing anomalous magic word replacement patterns
  • Web server logs showing requests with suspicious magic word constructs in page content
  • Modified wiki content that does not match editor revision history

Detection Strategies

  • Monitor MediaWiki application logs for parsing errors or unexpected behavior in the ParserAfterTidy hook
  • Implement content integrity checks for pages managed by the ApprovedRevs extension
  • Review recent edits to pages using approval workflows for suspicious magic word usage
  • Deploy web application firewall rules to detect input manipulation attempts targeting MediaWiki parser functions

Monitoring Recommendations

  • Enable verbose logging for the ApprovedRevs extension to capture magic word processing events
  • Implement file integrity monitoring on MediaWiki extension directories
  • Configure alerts for unusual patterns in wiki page rendering or caching behavior
  • Regularly audit ApprovedRevs-managed content for unauthorized modifications

How to Mitigate CVE-2026-22712

Immediate Actions Required

  • Review the Wikimedia Phabricator Task for official guidance and patch availability
  • Assess which MediaWiki installations are using the affected ApprovedRevs extension versions (1.39, 1.43, 1.44, 1.45)
  • Consider temporarily disabling the ApprovedRevs extension on public-facing wikis until a patch is applied
  • Restrict page editing permissions to trusted users on wikis where ApprovedRevs cannot be disabled

Patch Information

The Wikimedia Foundation has addressed this vulnerability through a code change tracked in the Wikimedia Gerrit Change Review. Administrators should review this change and update their ApprovedRevs extension to a patched version when available.

To update the ApprovedRevs extension:

  1. Access the Wikimedia Gerrit Change Review for the specific patch
  2. Follow MediaWiki extension update procedures for your deployment method
  3. Clear the parser cache after updating to ensure the fix takes effect
  4. Verify the update by checking the extension version in Special:Version

Workarounds

  • Disable the ApprovedRevs extension temporarily if the functionality is not critical to operations
  • Implement strict content security policies to limit the impact of potential input manipulation
  • Restrict wiki editing to authenticated and trusted users only
  • Enable additional input validation at the web server or reverse proxy level
  • Monitor the Wikimedia Phabricator Task for updated mitigation guidance
bash
# Example: Temporarily disable ApprovedRevs in LocalSettings.php
# Comment out or remove the extension loading line:
# wfLoadExtension( 'ApprovedRevs' );

# After patching, clear the parser cache:
php maintenance/run.php rebuildFileCache

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.3

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L/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
  • AvailabilityLow
  • CWE References
  • CWE-116
  • Technical References
  • Wikimedia Gerrit Change Review

  • Wikimedia Phabricator Task
  • Related CVEs
  • CVE-2025-53093: TabberNeue MediaWiki XSS Vulnerability

  • CVE-2025-53369: MediaWiki Short Description XSS Flaw

  • CVE-2026-39936: MediaWiki Score Extension XSS Vulnerability

  • CVE-2026-39935: MediaWiki CampaignEvents 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