CVE-2026-132705 in MediaWikiinfo

Summary

by MITRE • 11/25/2026

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Wikimedia Foundation MediaWiki - UrlShortener Extension. This vulnerability is associated with program files includes/SpecialUrlShortener.php. This issue affects MediaWiki - UrlShortener Extension: 1.43, 1.45, 1.46, 1.47.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/25/2026

The Wikimedia Foundation's MediaWiki platform, specifically within the UrlShortener extension versions 1.43 through 1.47, contains a critical web application security flaw classified as Cross-Site Scripting or XSS under CWE-79. This vulnerability stems from an improper neutralization of user-supplied input during the dynamic generation of web pages. The root cause lies within the source code file includes/SpecialUrlShortener.php, where the extension fails to adequately sanitize data before rendering it in a browser context. When users interact with specific features of this extension, such as generating or managing shortened URLs, untrusted data is processed and subsequently embedded into HTML output without sufficient validation or encoding mechanisms. This oversight allows malicious actors to inject client-side scripts that execute within the victim's web browser under the security context of the affected website.

From a technical perspective, the flaw represents a classic stored or reflected XSS vector depending on how the input is persisted and retrieved by the application logic in SpecialUrlShortener.php. If the unsanitized data originates from user inputs like URL parameters or form submissions that are immediately rendered back to the page without proper escaping, it constitutes a reflected XSS vulnerability. Alternatively, if the malicious payload is stored within the database via this extension and later served to other users viewing shortened links or management pages, it becomes a persistent cross-site scripting issue. In either scenario, the browser interprets the injected script as legitimate content from the trusted domain of MediaWiki, bypassing same-origin policy protections that typically isolate web applications from malicious sites.

The operational impact of this vulnerability is severe for both end-users and system administrators utilizing the UrlShortener extension. An attacker can exploit this flaw to execute arbitrary JavaScript code in the context of the victim's session. This capability enables a range of hostile actions including but not limited to stealing sensitive cookies or authentication tokens, hijacking user sessions, performing unauthorized administrative actions on behalf of the victim, defacing web pages, and redirecting users to malicious phishing sites. For Wikimedia projects that rely heavily on community trust and accurate information dissemination, such exploits can erode confidence in platform integrity and potentially lead to broader security compromises if session cookies provide access to higher-privilege accounts or sensitive user data stored locally by the browser.

Mitigation strategies must address both immediate remediation and long-term secure coding practices. The most effective solution is for administrators of affected MediaWiki instances running UrlShortener versions 1.43 through 1.47 to upgrade immediately to a patched version where input sanitization has been rigorously implemented in SpecialUrlShortener.php. Until an update is available, temporary mitigations include implementing strict Content Security Policy headers that restrict script execution sources and disabling the vulnerable extension if it is not essential for current operations. Developers should ensure all user inputs are encoded using context-appropriate methods such as HTML entity encoding before being inserted into DOM elements or attributes. Furthermore, adopting defense-in-depth measures like HTTP-only flags on cookies can limit the damage of any successful XSS attack by preventing script access to session identifiers.

This vulnerability aligns with Common Weakness Enumeration identifier CWE-79 which covers Improper Neutralization of Input During Web Page Generation known as Cross-site Scripting. It also maps directly to MITRE ATT&CK technique T1059.007 representing JavaScript execution within a browser environment, often utilized in initial access or credential harvesting phases of an attack chain. Security teams should treat this issue with high priority due to its direct impact on user session security and the widespread deployment of MediaWiki across numerous public-facing wikis and knowledge bases globally. Regular code audits focusing on input validation layers are recommended to prevent similar flaws from being introduced in future updates or custom extensions interacting with core MediaWiki functions.

Reservation

11/18/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00479

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!