Citizen MediaWiki Skin CVE-2025-62508
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain account with editinterface right
-
DeliveryInject HTML payload into Citizen system message
-
ExploitVictim loads article with Citizen sticky header
-
ExecutionstickyHeader.js writes textContent to innerHTML
-
PersistScript runs in victim session
-
ImpactSession data theft or admin actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated user holding the editinterface right (by default the sysop group) who can edit MediaWiki system messages; specifically the messages citizen-share, citizen-view-history, citizen-view-edit, or nstab-talk must be editable to plant the payload. The wiki must run the Citizen skin version 3.3.0-3.8.x with the sticky header active, and a victim must subsequently view an article rendered with that skin for the stored payload to fire. Limiting factors: the attacker must already be a privileged interface editor (not an anonymous or ordinary user), so this is primarily a tiered-permission bypass that matters on wikis separating editinterface from editsitejs; single-admin wikis gain little additional exposure. No special victim interaction beyond normally browsing an article is needed. |
| Impact | This is a stored XSS (CWE-79) in the Citizen MediaWiki skin rated CVSS 6.5 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N). The signals are internally consistent and point to a moderate, access-gated risk rather than a drive-by threat. The CVSS vector requires high privileges (PR:H): exploitation needs the editinterface right, which by default belongs to the sysop group - so the attacker is already a trusted administrator. EPSS is low at 0.45% (37th percentile), consistent with a vulnerability that depends on a specific third-party skin plus a privileged attacker. It is NOT in CISA KEV (no confirmed active exploitation). However, a working PoC is published in the GHSA advisory (GHSA-g955-vw6w-v6pp), and the one-line fix (innerHTML→textContent) makes the root cause trivially understood, so exploit code effectively exists publicly. The genuine value of this bug is the privilege boundary it crosses: it lets a user who has editinterface but deliberately lacks editsitejs execute arbitrary JavaScript in other users' sessions - defeating the editsitejs restriction that is supposed to gate on-wiki script. Net assessment: a real priority for multi-admin wikis with tiered permissions, but low urgency for single-admin deployments where the attacker would already be fully trusted. No conflicting signals; the main caveat is that KEV=NO means exploitation is not confirmed in the wild despite the public PoC. |
| Exploit ScenarioDerived | A user holding the editinterface right but not editsitejs (the default sysop configuration) edits one of the affected system messages - citizen-share, citizen-view-history, citizen-view-edit, or nstab-talk - to a payload such as <img src="" onerror="alert(...)">. When any other user then views a normal article rendered with the Citizen skin, stickyHeader.js copies the message's textContent into innerHTML, executing the script in the victim's session. A public PoC with these exact steps is documented in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
Stored cross-site scripting in the Citizen MediaWiki skin (versions 3.3.0 through 3.8.x, fixed in 3.9.0) lets an authenticated interface editor plant script inside sticky-header button labels that execute in other users' sessions. Because stickyHeader.js writes a source element's textContent into a target element's innerHTML when copying button labels, escaped HTML in system messages such as citizen-share, citizen-view-history, citizen-view-edit, and nstab-talk is re-interpreted as live markup, so a payload like an img tag with an onerror handler fires whenever a victim views an article rendered with the skin. The practical significance is a tiered-permission bypass: it matters on wikis where a group holds the editinterface right (the default sysop group) but not editsitejs, allowing those users to run JavaScript they would otherwise be prohibited from deploying, with high confidentiality and integrity impact (CVSS 6.5, PR:H). Exploitation requires a privileged message editor plus a victim simply browsing an article; publicly available exploit code exists in the upstream advisory, and EPSS is low at roughly 0.45% (37th percentile) with no confirmed active exploitation.
RemediationAI
Upgrade the Citizen skin to 3.9.0 or later, which is the vendor-released patch that changes the unsafe innerHTML assignment to a textContent assignment in stickyHeader.js; the fixing changes are visible in commits e006923c6dbf113c9a025ca186ecc09fe7b93a15 and fbb1d4fe9627281567706f3f6fc99a42ce16fdc4, and full details are in the GitHub advisory GHSA-g955-vw6w-v6pp. If the skin cannot be updated immediately, remove the editinterface right from every group that does not also hold editsitejs - most importantly the default sysop group - so interface editors cannot plant payloads, though this will block legitimate MediaWiki-namespace message editing until the patch is applied; alternatively disable the sticky header feature so the vulnerable copyButtonAttributes code path is never reached, accepting the loss of that navigation convenience. Auditing the citizen-share, citizen-view-history, citizen-view-edit, and nstab-talk system messages for injected markup and reverting any unexpected content also helps, but it is a detection-and-cleanup measure rather than a fix, since a privileged editor can re-inject the payload at any time on an unpatched wiki.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation, i.e. classic XSS) arising from an unsafe DOM sink. In the Citizen skin's resources/skins.citizen.scripts/stickyHeader.js, the copyButtonAttributes function mirrored button labels from the page into the sticky header by assigning to.lastElementChild.innerHTML = from.lastElementChild.textContent. Reading textContent yields the decoded, unescaped string, and assigning it to innerHTML re-parses that string as HTML, so any entity-escaped markup in a MediaWiki system message is resurrected as executable DOM. MediaWiki normally defends against this class of attack by parsing wikitext and producing escaped HTML, and by separating the editinterface right (edit MediaWiki namespace messages) from editsitejs (edit site-wide JavaScript) so that interface editors cannot introduce script. That separation is exactly what the innerHTML sink defeats, since markup placed in a message is executed as script by the skin's own trusted JavaScript. The upstream fix swaps the assignment so the label is written with to.lastElementChild.textContent, storing the string as inert text instead of parsing it as markup; the affected bundle is the Composer package starcitizentools/citizen-skin (>= 3.3.0, < 3.9.0), and the sticky header must be active for the sink to be reachable.
Know when Mediawiki gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
Exploitation requires the privileged editinterface right so PR:H; network-delivered stored payload fires on normal browsing (AV:N, AC:L, UI:N) yielding high confidentiality/integrity impact and no availability loss.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
Citizen is a MediaWiki skin that makes extensions part of the cohesive experience. Citizen from 3.3.0 to 3.9.0 are vulnerable to stored cross-site scripting in the sticky header button message handling. In stickyHeader.js the copyButtonAttributes function assigns innerHTML from a source element’s textContent when copying button labels. This causes escaped HTML in system message content (such as citizen-share, citizen-view-history, citizen-view-edit, and nstab-talk) to be interpreted as HTML in the sticky header, allowing injection of arbitrary script by a user with the ability to edit interface messages. The vulnerability allows a user with the editinterface right but without the editsitejs right (by default the sysop group has editinterface but may not have editsitejs) to execute arbitrary JavaScript in other users’ sessions, enabling unauthorized access to sensitive data or actions. The issue is fixed in 3.9.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
MediaWiki 1.22.x before 1.22.2, 1.21.x before 1.21.5, and 1.19.x before 1.19.11, when DjVu or PDF file upload support is
The MWOAuthDataStore::lookup_token function in Extension:OAuth for MediaWiki 1.25.x before 1.25.3, 1.24.x before 1.24.4,
An issue was discovered in the CheckUser extension for MediaWiki through 1.39.3. Rated critical severity (CVSS 9.8), thi
The admin API module in the QuizGame extension for MediaWiki through 1.37.2 (before 665e33a68f6fa1167df99c0aa18ed0157cdf
The SemanticDrilldown extension for MediaWiki through 1.37.2 (before e688bdba6434591b5dff689a45e4d53459954773) allows SQ
An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely
An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely
An issue was discovered in the CentralAuth extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this
An issue was discovered in the AbuseFilter extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this
api.php in MediaWiki before 1.27.4, 1.28.x before 1.28.3, and 1.29.x before 1.29.2 has a Reflected File Download vulnera
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in The Wikimedia Foun
An issue was discovered in the FileImporter extension in MediaWiki through 1.36. Rated high severity (CVSS 8.8), this vu
NVD
CVE.org
EPSS
GitHub
Exploit-DB