
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-49577 is a stored Cross-Site Scripting (XSS) vulnerability in the Citizen skin for MediaWiki, allowing users with message-editing privileges to inject arbitrary HTML into the DOM via unsanitized preference menu heading messages. It affects starcitizentools/citizen-skin versions >= 2.13.0 and < 3.3.1. The vulnerability was published on June 11, 2025, by the maintainer (alistair3149) and added to the GitHub Advisory Database on June 13, 2025. It carries a CVSS v3.1 base score of 6.5 (Moderate) per the GitHub Advisory (Github Advisory, Security Advisory).
The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation) and CWE-80 (Improper Neutralization of Script-Related HTML Tags). In resources/skins.citizen.preferences/addPortlet.polyfill.js, the label div's innerHTML was set to label.textContent, which effectively unsanitizes system messages: labelDiv.innerHTML = label.textContent || '';. This allows any user with permission to edit MediaWiki system messages (e.g., citizen-feature-custom-font-size-name) to embed arbitrary HTML — including event-handler-based XSS payloads — that executes when other users open the preferences menu. Script tags alone do not work due to how the HTML is inserted, but other HTML-based XSS vectors (e.g., <img onerror=...>) are viable (Security Advisory, Patch Commit).
Successful exploitation enables an attacker with message-editing privileges to inject malicious HTML/JavaScript into the preferences menu, affecting any user who opens that menu. This can lead to session hijacking, credential theft, unauthorized actions performed on behalf of victims, and exfiltration of sensitive information accessible within the browser context. Availability is not impacted, but confidentiality and integrity are both at risk (Github Advisory, Security Advisory).
A proof-of-concept is publicly documented in the security advisory, demonstrating exploitation by editing a system message such as citizen-feature-custom-font-size-name to include a malicious HTML payload. Exploitation requires high privileges (message-editing rights on the MediaWiki instance) and no user interaction beyond the victim opening the preferences menu. There is no evidence of in-the-wild exploitation at this time, and the vulnerability is not listed in the CISA KEV catalog. The EPSS score is approximately 0.028% (Feedly) to 0.156% (GitHub Advisory), indicating low near-term exploitation probability (Github Advisory, Security Advisory).
editinterface or administrator rights).MediaWiki:citizen-feature-custom-font-size-name.<script> tags are blocked by the insertion mechanism, so use event-handler vectors such as <img src=x onerror=alert(document.cookie)> or similar).innerHTML, triggering the payload in their browser context.MediaWiki:citizen-feature-custom-font-size-name or similar citizen-* preference messages) by non-administrative or unexpected accounts.onerror, onload, onclick) stored in MediaWiki's text or revision tables for interface messages in the MediaWiki: namespace.Upgrade the Citizen MediaWiki skin to version 3.3.1 or later, which replaces the unsafe innerHTML assignment with textContent and applies proper escaping across multiple affected components (Patch Commit). As an interim workaround, restrict the editinterface permission to only highly trusted administrators to prevent unauthorized modification of system messages. Additionally, audit existing MediaWiki interface messages in the citizen-* namespace for any injected HTML content (Github Advisory).
The vulnerability was reported by community researcher SomeMWDev and promptly addressed by maintainer alistair3149 with a patch released the same day as disclosure (June 11, 2025). RedPacketSecurity noted the advisory on Mastodon shortly after publication. No significant broader media coverage or vendor statements beyond the GitHub advisory have been identified.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."