Skip to main content
Vulnerability Database/CVE-2026-100245

CVE-2026-100245: MediaWiki Wikibase Extension XSS Vulnerability

CVE-2026-100245 is a stored cross-site scripting flaw in MediaWiki Wikibase Extension that enables attackers to inject malicious scripts. This article covers technical details, affected versions, impact, and mitigation.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-100245 Overview

CVE-2026-100245 is a stored cross-site scripting (XSS) vulnerability [CWE-79] in the Wikimedia Foundation MediaWiki Wikibase Extension. The flaw stems from improper neutralization of user-supplied input during web page generation. An attacker can inject malicious script content that persists in stored data and executes in the browser context of any user who views the affected page.

The issue affects Wikibase Extension versions prior to 1.46.1, 1.45.5, and 1.43.10. Wikibase powers structured data storage for MediaWiki deployments, including Wikidata, making the extension widely deployed across knowledge base sites.

Critical Impact

Stored XSS in Wikibase enables persistent script execution against every visitor rendering the affected entity, including administrators, which can lead to session hijacking and privileged account takeover.

Affected Products

  • Wikimedia Foundation MediaWiki Wikibase Extension versions before 1.43.10
  • Wikimedia Foundation MediaWiki Wikibase Extension versions before 1.45.5
  • Wikimedia Foundation MediaWiki Wikibase Extension versions before 1.46.1

Discovery Timeline

  • 2026-09-29 - CVE-2026-100245 published to the National Vulnerability Database (NVD)
  • 2026-09-29 - Last updated in NVD database

Technical Details for CVE-2026-100245

Vulnerability Analysis

The Wikibase Extension fails to properly neutralize input during web page generation. When user-controlled content is rendered into HTML output, the extension does not consistently escape or sanitize characters that carry meaning in the browser rendering context. Attackers can embed script payloads inside Wikibase entity fields where they persist server-side.

Each subsequent page view retrieves the malicious payload and renders it inline. The browser then executes the injected script under the origin of the MediaWiki site. This grants the attacker access to session cookies, CSRF tokens, and DOM state belonging to the victim.

Because the payload persists in stored Wikibase data, the vulnerability requires no ongoing attacker interaction after the initial injection. Any authenticated administrator viewing the affected entity risks account compromise.

Root Cause

The root cause is missing or incomplete output encoding within the Wikibase rendering path. Fields that accept structured content pass through a code path that treats attacker-controlled data as trusted HTML rather than as text to be escaped. Full technical details of the fix appear in the Wikimedia Gerrit Code Review and Wikimedia Phabricator Task T432877.

Attack Vector

An attacker with the ability to edit Wikibase entities submits a crafted payload containing HTML or JavaScript. The payload is stored in the Wikibase repository. Any user, including privileged users, subsequently loading the entity page triggers execution in their browser. Refer to the vendor advisories for payload specifics.

Detection Methods for CVE-2026-100245

Indicators of Compromise

  • Wikibase entity revisions containing <script> tags, event handlers such as onerror= or onclick=, or javascript: URIs in fields that should hold plain text or structured values
  • Unexpected outbound HTTP requests from browsers immediately after loading specific Wikibase entity pages
  • Administrative session tokens observed in web server access logs originating from unfamiliar IP addresses shortly after entity page views

Detection Strategies

  • Audit the Wikibase revision history for edits that introduce HTML tags, encoded script fragments, or unusual Unicode sequences in entity labels, descriptions, and statements
  • Deploy Content Security Policy (CSP) reporting to capture script execution violations against the MediaWiki origin
  • Correlate web application firewall (WAF) alerts for XSS signatures with authenticated Wikibase edit endpoints

Monitoring Recommendations

  • Monitor the wb_changes and revision tables for edits from newly registered or low-reputation accounts
  • Alert on administrator account activity that occurs immediately after viewing recently edited entities
  • Track browser console errors and CSP violation reports aggregated from client telemetry

How to Mitigate CVE-2026-100245

Immediate Actions Required

  • Upgrade the Wikibase Extension to 1.46.1, 1.45.5, or 1.43.10 depending on the deployed MediaWiki branch
  • Review recent Wikibase edits for injected HTML or script content and revert malicious revisions
  • Force session invalidation for administrator accounts that accessed potentially poisoned entity pages

Patch Information

Wikimedia Foundation released fixed versions 1.46.1, 1.45.5, and 1.43.10 of the Wikibase Extension. The corresponding code change is tracked in the Wikimedia Gerrit Code Review with additional context in Wikimedia Phabricator Task T432877.

Workarounds

  • Restrict Wikibase edit permissions to trusted user groups until the patch is deployed
  • Enforce a strict Content Security Policy that disallows inline scripts and unapproved script sources on MediaWiki pages
  • Temporarily disable rendering of the affected Wikibase fields if the deployment permits configuration-level toggles
bash
# Example: upgrade Wikibase Extension via composer for a MediaWiki 1.43 branch
cd /var/www/mediawiki
composer require wikibase/wikibase:1.43.10
php maintenance/update.php --quick

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.