Skip to content
Threat Feed
medium advisory

Cross-Site Scripting Vulnerability in MediaWiki CirrusSearch Extension

A vulnerability in the CirrusSearch extension for MediaWiki allows remote, unauthenticated attackers to execute cross-site scripting (XSS) attacks through improper input sanitization.

Triage facts

Revision 1
Applicability
CirrusSearch
Evidence
Unknown
Severity
Medium
Action
Elevated
Sources
1 public source
Freshness
Revision 1Sep 25, 14:01 UTC
Source quality
A1Likely

The CirrusSearch extension for MediaWiki, which provides search functionality via Elasticsearch, contains a cross-site scripting (XSS) vulnerability. An unauthenticated remote attacker can exploit this flaw by supplying specially crafted input to the search functionality that is not properly sanitized before being reflected in the user's browser. If successful, this attack allows for the execution of arbitrary JavaScript within the context of a victim's session, potentially leading to session hijacking, credential theft, or unauthorized actions performed on behalf of the user. This vulnerability highlights the importance of rigorous input validation in extensions that handle user-supplied query parameters and render output dynamically in the application interface. Defenders should monitor for unexpected script injection patterns in web server logs or via browser-based security telemetry.

Impact

Successful exploitation of this vulnerability allows for the execution of malicious scripts in the browser of an authenticated or unauthenticated MediaWiki user. This can lead to account takeover, unauthorized modification of wiki content, or redirection to malicious sites, impacting the integrity and confidentiality of the affected MediaWiki instance.

Recommendation

Update the CirrusSearch extension to the latest available version provided by the MediaWiki project to remediate the underlying sanitization flaw. Implement or update Content Security Policy (CSP) headers to restrict the execution of inline scripts and prevent unauthorized script injection.


Immediate actions

Update CirrusSearch extension to the latest version.

IT Operations 72h

Mitigations

Review and harden Content Security Policy (CSP) to mitigate XSS risks.

immediate IT Operations

XSS vulnerability in CirrusSearch