CVE-2026-103585 in MediaWikiinfo

Summary

by MITRE • 10/01/2026

Improper neutralization of Script-Related HTML tags in a web page (basic XSS) vulnerability in The Wikimedia Foundation MediaWiki MediaSearch extension allows Cross-Site Scripting (XSS).

This issue affects MediaWiki MediaSearch extension: 1.46, 1.45, and 1.43.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 10/01/2026

The identified vulnerability represents a classic instance of improper neutralization of script-related HTML tags within web pages, commonly referred to as basic Cross-Site Scripting or XSS. This flaw is present in the MediaSearch extension for The Wikimedia Foundation's MediaWiki platform, specifically affecting versions 1.46, 1.45, and 1.43. In these affected iterations, the application fails to adequately sanitize user-supplied input before including it in web pages served to other users. This lack of proper validation allows an attacker to inject malicious client-side scripts into a vulnerable webpage that are then executed by the victim's browser when they view the compromised content. The core technical failure lies in the extension's handling of search queries or related parameters, where special characters and script delimiters such as angle brackets and quotation marks are not consistently escaped or encoded according to secure coding standards.

From an operational perspective, this vulnerability enables a stored or reflected XSS attack depending on how the input is processed and displayed within the MediaSearch interface. If the malicious payload is stored in the database via a search query and subsequently rendered for other users viewing that content, it constitutes a persistent threat vector. Alternatively, if the script executes immediately upon submission without storage, it serves as a reflective attack surface. In either scenario, an attacker can craft a specially crafted URL or input field containing JavaScript code designed to perform actions on behalf of the victim. These actions may include stealing session cookies, hijacking user sessions, performing unauthorized administrative actions, defacing websites, or redirecting users to malicious sites for phishing purposes. The impact is particularly severe in wiki environments where collaborative editing and public visibility are common, potentially compromising sensitive information held within private wikis if authentication tokens are exfiltrated.

This vulnerability aligns with CWE-79, which defines Improper Neutralization of Input During Web Page Generation known as Cross-site Scripting. It also maps to the MITRE ATT&CK framework under technique T1059, specifically sub-technique 007 for JavaScript execution. The exploitation typically involves crafting a payload that bypasses existing filters by utilizing event handlers or alternative script injection vectors such as SVG tags with onerror attributes if standard script tag filtering is incomplete. Attackers often use URL encoding or HTML entity encoding to evade basic detection mechanisms embedded within the extension's input processing logic.

Mitigation strategies must focus on implementing robust output encoding and context-aware sanitization for all user-controlled data rendered in web pages. Developers should ensure that any dynamic content inserted into HTML documents is properly encoded based on its context, whether it appears inside an HTML body, a JavaScript string, or an attribute value. Utilizing established libraries such as OWASP Java Encoder or equivalent frameworks for PHP and other languages can help automate this process and reduce the risk of human error in sanitization logic. Additionally, implementing Content Security Policy headers can provide a layer of defense by restricting the sources from which scripts are allowed to execute, thereby mitigating the impact even if an injection attempt succeeds. Upgrading to patched versions of the MediaSearch extension where these issues have been resolved is the most effective immediate remediation step for administrators managing affected Wikimedia instances. Regular security audits and static code analysis tools configured to detect XSS patterns should also be integrated into the development lifecycle to prevent similar flaws in future releases.

Reservation

10/01/2026

Disclosure

10/01/2026

Moderation

accepted

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!