6.5medium
Citizen vulnerable to stored XSS in sticky header button messages
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.64% (higher than 45% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-g955-vw6w-v6pp
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| StarCitizenTools mediawiki-skins-Citizen | >= 3.3.0, < 3.9.0 | CVE List |
| starcitizentools/citizen-skin (Packagist) | from 3.3.0 before 3.9.0 | GitHub Advisory Database |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Summary
The JS implementation for copying button labels to the sticky header in the Citizen skin unescapes HTML characters, allowing for stored XSS through system messages.
Details
In the copyButtonAttributes function in stickyHeader.js, when copying the button labels, the innerHTML of the new element is set to the textContent of the old element:
https://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/f4cbcecf5aca0ae69966b23d4983f9cb5033f319/resources/skins.citizen.scripts/stickyHeader.js#L29-L41
This unescapes any escaped HTML characters and causes the contents of the system messages to be interpreted as HTML.
PoC
- Edit any of the affected messages (
citizen-share,citizen-view-history,citizen-view-edit,nstab-talk) to the following payload:<img src="" onerror="alert('Sticky Header Button XSS')">. - Visit any mainpage article in the wiki using the Citizen skin.
Impact
This impacts wikis where a group has the editinterface but not the editsitejs user right. By default, this is the case for the sysop group.
NVD (es)
Citizen es una skin de MediaWiki que hace que las extensiones formen parte de la experiencia cohesiva. Citizen desde 3.3.0 hasta 3.9.0 son vulnerables a cross-site scripting almacenado en el manejo de mensajes de los botones del encabezado fijo (sticky header). En stickyHeader.js, la función copyButtonAttributes asigna innerHTML desde el textContent de un elemento fuente al copiar etiquetas de botones. Esto hace que el HTML escapado en el contenido de los mensajes del sistema (como citizen-share, citizen-view-history, citizen-view-edit y nstab-talk) sea interpretado como HTML en el encabezado fijo, permitiendo la inyección de scripts arbitrarios por parte de un usuario con la capacidad de editar mensajes de interfaz. La vulnerabilidad permite a un usuario con el derecho editinterface pero sin el derecho editsitejs (por defecto, el grupo sysop tiene editinterface pero puede no tener editsitejs) ejecutar JavaScript arbitrario en las sesiones de otros usuarios, lo que permite el acceso no autorizado a datos o acciones sensibles. El problema está solucionado en 3.9.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-62508 changed 2025-10-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-g955-vw6w-v6pp changed 2025-10-20 | CC-BY-4.0 |
| NVD | CVE-2025-62508 changed 2026-10-08 | Public domain |