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-96873 Overview
CVE-2026-96873 is a reflected cross-site scripting (XSS) vulnerability in the MediaWiki CirrusSearch extension. The flaw stems from improper neutralization of user-supplied input during web page generation, classified as [CWE-79]. All versions of the CirrusSearch extension through 1.46.0 are affected. An attacker can craft a malicious URL that, when visited by an authenticated user, executes arbitrary JavaScript in the context of the MediaWiki site. CirrusSearch provides search functionality backed by Elasticsearch for MediaWiki deployments, including Wikipedia, making the exposure relevant to any wiki running the affected extension.
Critical Impact
Successful exploitation allows attackers to execute arbitrary JavaScript in a victim's browser session, enabling session hijacking, credential theft, or unauthorized actions performed as the victim.
Affected Products
- MediaWiki CirrusSearch extension through version 1.46.0
- MediaWiki installations deploying CirrusSearch for Elasticsearch-backed search
- Wiki farms and self-hosted MediaWiki instances with CirrusSearch enabled
Discovery Timeline
- 2026-09-24 - CVE-2026-96873 published to NVD
- 2026-09-24 - Last updated in NVD database
Technical Details for CVE-2026-96873
Vulnerability Analysis
The vulnerability resides in how the CirrusSearch extension processes and reflects user-supplied input back into rendered HTML. Attacker-controlled values passed to search-related endpoints are not properly encoded or sanitized before being included in the response page. When a victim loads a crafted URL, the browser parses and executes the injected script as if it originated from the trusted MediaWiki domain.
The attack requires no authentication to craft the payload and no special privileges on the server. However, the attacker must convince a target to click a malicious link, typically through phishing, forum posts, or external referrers. The resulting script runs with the victim's privileges, meaning administrators are high-value targets.
Exploitation does not alter data at rest on the server. The injected content is reflected per-request, which distinguishes this issue from stored XSS variants. The EPSS score of 0.268% indicates low observed exploitation probability at this time.
Root Cause
The root cause is missing or inadequate HTML output encoding on a parameter that CirrusSearch echoes into the response. Input flowing from the HTTP request reaches a rendering path without passing through MediaWiki's standard escaping helpers, allowing HTML and JavaScript syntax to break out of the intended context. Reference the Wikimedia Gerrit Change for the specific code path and remediation.
Attack Vector
The attack is network-based and requires user interaction. An attacker constructs a URL containing a JavaScript payload in a vulnerable CirrusSearch parameter and delivers it via email, chat, or a third-party site. When a logged-in MediaWiki user follows the link, the script executes under the wiki's origin, enabling cookie theft, forced edits, CSRF token exfiltration, or redirection to credential-harvesting pages. Technical details are tracked in Wikimedia Phabricator Task T435234.
Detection Methods for CVE-2026-96873
Indicators of Compromise
- Inbound HTTP requests to CirrusSearch endpoints containing <script>, javascript:, onerror=, or encoded variants in query parameters
- Referrer logs showing MediaWiki search URLs originating from external untrusted domains
- Unexpected outbound requests from user browsers to attacker-controlled hosts following a search action
- Session anomalies such as account changes or edits made shortly after a user clicked a search-related link
Detection Strategies
- Deploy a web application firewall (WAF) with signatures for reflected XSS patterns against MediaWiki search routes
- Enable and review MediaWiki access logs for suspicious query string content targeting CirrusSearch parameters
- Implement Content Security Policy (CSP) reporting to capture blocked inline script execution attempts
- Correlate authentication events and privileged actions with recent search URL referrers in your SIEM
Monitoring Recommendations
- Alert on HTTP 200 responses to search endpoints where request parameters contain HTML tags or event handlers
- Monitor administrator and bureaucrat account activity for actions that deviate from established patterns
- Track CSP violation reports for scripts that attempt to load from non-whitelisted origins
How to Mitigate CVE-2026-96873
Immediate Actions Required
- Upgrade the CirrusSearch extension to a version above 1.46.0 that incorporates the fix from the referenced Gerrit change
- Audit MediaWiki administrator accounts for recent unexpected activity or session anomalies
- Enforce a restrictive Content Security Policy that disallows inline scripts and limits script sources
- Require administrators to re-authenticate and rotate session cookies after patching
Patch Information
The fix is published through the Wikimedia Gerrit code review system. Apply the patch referenced in the Wikimedia Gerrit Change and track remediation progress via the Wikimedia Phabricator Task T435234. Operators of MediaWiki deployments should pull the updated CirrusSearch release and redeploy following standard extension upgrade procedures.
Workarounds
- Deploy a WAF rule that blocks requests to CirrusSearch endpoints containing HTML tag characters or JavaScript URI schemes in parameters
- Enforce a strict Content Security Policy header with script-src 'self' to prevent inline script execution
- Temporarily disable the CirrusSearch extension if patching is not immediately feasible and search downtime is acceptable
- Educate administrators and editors to avoid clicking untrusted search URLs until the fix is applied
# Example CSP header to mitigate reflected XSS in MediaWiki
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'"
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

