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

CVE-2026-100237: MediaWiki Thanks Extension XSS Vulnerability

CVE-2026-100237 is a stored cross-site scripting vulnerability in MediaWiki Thanks Extension that allows attackers to inject malicious scripts. This article covers the technical details, affected versions, and mitigation strategies.

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-100237 Overview

CVE-2026-100237 is a stored cross-site scripting (XSS) vulnerability in the Wikimedia Foundation MediaWiki Thanks extension. The flaw arises from improper neutralization of user-supplied input during web page generation, classified under [CWE-79]. An attacker can inject malicious script content that is persisted and later rendered in another user's browser session. Successful exploitation requires user interaction, such as viewing an affected page, and executes within the victim's authenticated session context. The issue affects Thanks extension versions prior to 1.43.10, 1.45.5, and 1.46.1.

Critical Impact

Stored XSS enables attackers to execute arbitrary JavaScript in the browsers of MediaWiki users, enabling session theft, UI defacement, and actions performed on behalf of the victim.

Affected Products

  • Wikimedia MediaWiki Thanks extension versions prior to 1.43.10
  • Wikimedia MediaWiki Thanks extension versions prior to 1.45.5
  • Wikimedia MediaWiki Thanks extension versions prior to 1.46.1

Discovery Timeline

  • 2026-09-25 - CVE-2026-100237 published to NVD
  • 2026-09-28 - Last updated in NVD database

Technical Details for CVE-2026-100237

Vulnerability Analysis

The Thanks extension lets MediaWiki users send a short appreciation notification to editors who contributed to a page. The vulnerability stems from improper neutralization of user-controlled input before it is embedded into generated web pages. Because the injected payload is stored server-side and later rendered to other users, this is a stored (persistent) XSS condition rather than a reflected one. Exploitation runs within the same origin as the target MediaWiki instance, so scripts gain access to session cookies, Cross-Site Request Forgery (CSRF) tokens, and the Document Object Model (DOM) of authenticated sessions. Attackers can leverage this access to perform account takeover, impersonate editors, or pivot to privileged administrative actions when a sysop views the malicious content.

Root Cause

The root cause is missing or insufficient output encoding on user-supplied values rendered by the Thanks extension. HTML metacharacters such as <, >, and attribute delimiters are not consistently neutralized, allowing injected <script> elements or event-handler attributes to execute. Technical remediation details are tracked in Wikimedia Phabricator Task T432424 and the corresponding Wikimedia Gerrit Change Request.

Attack Vector

The attack vector is network-based and requires no privileges on the target wiki beyond the ability to trigger the vulnerable code path through the Thanks extension. User interaction is required: a victim must load the page containing the stored payload. Because the scope is changed, the injected script can affect resources beyond the vulnerable component, including the parent MediaWiki interface and its authenticated session state. The vulnerability is described in prose only; no verified proof-of-concept code is available at this time.

Detection Methods for CVE-2026-100237

Indicators of Compromise

  • Unexpected <script> tags, inline event handlers (for example onerror=, onload=), or javascript: URIs appearing in Thanks-related log entries or revision content.
  • Outbound HTTP requests from user browsers to attacker-controlled domains originating from MediaWiki page views.
  • Anomalous administrative actions (user rights changes, page deletions) performed shortly after a user viewed a page containing a thanks notification.

Detection Strategies

  • Review MediaWiki access logs for requests to Thanks extension endpoints containing HTML metacharacters or encoded script payloads.
  • Deploy a Content Security Policy (CSP) in report-only mode to surface inline-script execution attempts tied to the Thanks extension.
  • Audit stored notification records and revision histories for payloads that resemble XSS vectors.

Monitoring Recommendations

  • Monitor for privilege escalation events and new administrator accounts on MediaWiki instances pending patch application.
  • Alert on browser error telemetry from internal users accessing wiki pages, including CSP violation reports.
  • Track the installed Thanks extension version across all MediaWiki deployments to confirm patch coverage.

How to Mitigate CVE-2026-100237

Immediate Actions Required

  • Upgrade the MediaWiki Thanks extension to version 1.43.10, 1.45.5, or 1.46.1 or later, matching your MediaWiki core release branch.
  • Invalidate active user sessions after upgrading to limit the impact of any payloads executed before patching.
  • Audit recent administrative actions and thanks notifications for signs of exploitation.

Patch Information

The fix is tracked in Wikimedia Phabricator Task T432424 with the code change available in the Wikimedia Gerrit Change Request. Administrators should apply the fixed branch release that matches their deployed MediaWiki version: 1.43.10 for the 1.43 LTS line, 1.45.5 for the 1.45 line, and 1.46.1 for the 1.46 line.

Workarounds

  • Temporarily disable the Thanks extension in LocalSettings.php until the patched version can be deployed.
  • Enforce a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins.
  • Restrict account creation and limit the ability to send thanks to trusted, authenticated users during the remediation window.
bash
# Configuration example: disable the Thanks extension in LocalSettings.php
# Comment out or remove the following line until patched:
# wfLoadExtension( 'Thanks' );

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.