CVE-2026-132709 in MediaWiki
Summary
by MITRE • 11/25/2026
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Wikimedia Foundation mediawiki/services/parsoid. This vulnerability is associated with program files wikimedia/parsoid/src/Wt2Html/DOM/Handlers/TableFixups.php. This issue affects mediawiki/services/parsoid: from 1.43.0 before 1.43.12, from 1.45.0 before 1.45.7, from 1.46.0 before 1.46.3, 1.47.
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Analysis
by VulDB Data Team • 11/25/2026
The vulnerability identified as Improper Neutralization of Input During Web Page Generation, commonly known as Cross-site Scripting or XSS, resides within the Wikimedia Foundation's Parsoid service, specifically in the file src/Wt2Html/DOM/Handlers/TableFixups.php. This component is responsible for converting wikitext into HTML and managing complex table structures during the rendering process. The flaw stems from insufficient sanitization of user-supplied input when processing specific table-related markup attributes or content within parsed documents. When Parsoid processes malformed or maliciously crafted tables, it fails to properly escape special characters that have semantic meaning in HTML contexts, such as angle brackets and quotation marks. This oversight allows an attacker who can influence the wikitext source to inject arbitrary JavaScript code into the resulting HTML output. The vulnerability affects multiple versions of mediawiki/services/parsoid, including releases from 1.43.0 up to but not including 1.43.12, 1.45.0 before 1.45.7, 1.46.0 before 1.46.3, and version 1.47. This broad range of affected versions indicates that the underlying logic error has persisted across several major release cycles without adequate remediation in earlier patches.
From a technical perspective, this is classified as an Stored or Reflected Cross-site Scripting vulnerability depending on whether the malicious input is stored in the database and served later or processed dynamically during a single request. In the context of Parsoid, which acts as a bridge between MediaWiki's wikitext format and modern web browsers via HTML5, the injection point likely occurs when table attributes are parsed and converted to DOM elements. If an attacker can control part of the table structure through wiki markup, they may be able to break out of expected attribute values or text nodes. For instance, by injecting script tags or event handlers like onerror within a table cell's content or properties, the malicious code executes in the context of any user viewing that page. This execution happens with the privileges of the victim’s session, allowing for significant exploitation potential against authenticated users who have access to sensitive pages or administrative functions.
The operational impact of this vulnerability is substantial due to the widespread use of MediaWiki and Parsoid across Wikimedia projects and countless other wiki-based platforms globally. Successful exploitation could lead to account takeover if an administrator views a crafted page while logged in, session hijacking through cookie theft, defacement of website content by injecting malicious UI elements, or redirection of users to phishing sites. Furthermore, because Parsoid is often used as a backend service for high-traffic wikis, the scale of potential impact is amplified. Attackers could also use this vector to perform cross-site request forgery attacks against internal APIs if session cookies are accessible via JavaScript, thereby escalating privileges beyond simple script execution. The persistence of this flaw in version 1.47 suggests that regression testing for input validation in complex DOM manipulation routines may have been insufficient or overlooked during recent development cycles.
To mitigate this risk, organizations running affected versions must upgrade to the latest patched releases immediately. Specifically, users should migrate to mediawiki/services/parsoid version 1.43.12 or later, 1.45.7 or later, and 1.46.3 or later. For those on version 1.47, upgrading is critical as it remains unpatched in the current reporting context. In addition to software updates, administrators should implement strict Content Security Policy headers that restrict script execution sources, although this serves only as a defense-in-depth measure and does not replace fixing the root cause. Input validation at the application level should also be reviewed to ensure all user-controlled data entering table rendering pipelines is strictly sanitized against HTML special characters. Monitoring web server logs for unusual patterns of requests containing encoded script tags or suspicious DOM manipulation attempts can aid in early detection of exploitation attempts before significant damage occurs.
This vulnerability aligns with CWE-79, which covers Improper Neutralization of Input During Web Page Generation: Cross-site Scripting, and maps to the MITRE ATT&CK technique T1059.007 for JavaScript-based command execution. The failure lies in the input validation layer where trusted context assumptions were incorrectly applied to user-supplied data within a complex parsing engine. By addressing this flaw through timely patching and reinforcing input sanitization protocols, organizations can effectively neutralize the threat posed by malicious actors seeking to exploit Parsoid’s table handling capabilities for unauthorized code execution.