CVE-2026-132739 in MediaWiki
Summary
by MITRE • 11/25/2026
Cross-Site Request Forgery (CSRF) vulnerability in Wikimedia Foundation MediaWiki - CentralNotice Extension. This vulnerability is associated with program files includes/specials/SpecialHideBanners.php. This issue affects MediaWiki - CentralNotice Extension: 1.43, 1.45, 1.46.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
The Wikimedia Foundation's MediaWiki platform, specifically within the CentralNotice extension versions 1.43 through 1.46, contains a critical Cross-Site Request Forgery vulnerability located in the SpecialHideBanners.php program file. This component is responsible for managing user preferences regarding banner advertisements displayed across various Wikimedia projects. The flaw stems from an insufficient validation of session tokens or origin headers when processing requests to hide specific banners. In a typical secure implementation, actions that modify user state or configuration must require a unique, unpredictable anti-CSRF token tied to the current user session. However, in this affected version, the endpoint fails to strictly enforce these protections, allowing an attacker to craft malicious HTTP requests that appear legitimate to the server because they originate from a valid user's browser context without requiring explicit confirmation of intent beyond the automatic submission by the victim's browser.
From a technical perspective, this vulnerability represents a classic failure in state change protection mechanisms. When a user is authenticated and logged into their Wikimedia account, their browser automatically includes session cookies with every request to the domain. An attacker can host a malicious webpage containing an HTML form or JavaScript that triggers a GET or POST request to the SpecialHideBanners endpoint on behalf of any logged-in victim who visits the page. Because the server does not adequately verify that the request was intentionally initiated by the user through a legitimate interface, it processes the command to hide banners as if it were valid. This bypasses standard security controls designed to prevent unauthorized state changes, exploiting the trust relationship between the browser and the web application.
The operational impact of this vulnerability is primarily related to user experience manipulation rather than direct data exfiltration or system compromise. By forcing a victim to hide specific advertisements, an attacker can disrupt the funding model for Wikimedia projects which rely on these notices. Furthermore, if the hidden banners contain important informational messages regarding site maintenance, legal updates, or security advisories, users may be deprived of critical information. While this does not directly lead to account takeover or data theft in isolation, it demonstrates a significant weakness in access control logic that could potentially be chained with other vulnerabilities for more severe outcomes. It also undermines the integrity of user preferences by allowing them to be altered without consent.
This vulnerability aligns closely with CWE-352, which defines Cross-Site Request Forgery as an attack that forces an end-user to execute unwanted actions on a web application in which they are currently authenticated. Additionally, it maps to MITRE ATT&CK technique T1078, specifically within the context of valid accounts being used for malicious purposes, although more accurately it reflects weaknesses in authentication and session management practices outlined under T1534 or general input validation failures. To mitigate this issue, developers must implement robust anti-CSRF tokens that are unique per user session and validated on every state-changing request. The SpecialHideBanners.php file should be updated to check for the presence of a valid token before processing any banner hiding commands. Furthermore, implementing SameSite cookie attributes set to Strict or Lax can provide an additional layer of defense by preventing browsers from sending cookies in cross-site contexts. Users running affected versions are advised to upgrade immediately to patched releases where these validation checks have been enforced.