CVE-2025-62508
JSON

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 packageVersionsReported by
StarCitizenTools mediawiki-skins-Citizen>= 3.3.0, < 3.9.0CVE List
starcitizentools/citizen-skin (Packagist)from 3.3.0 before 3.9.0GitHub Advisory Database

All scores

GitHub_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

Classification

CWE-79

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
  1. 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')">.
  2. Visit any mainpage article in the wiki using the Citizen skin.
<img width="495" height="228" alt="image" src="https://github.com/user-attachments/assets/ac75b8e1-b181-4335-9526-17d6b6f8518e" /> <img width="569" height="157" alt="image" src="https://github.com/user-attachments/assets/c052edb9-ff68-4869-9c66-3ec85e7ff68a" />
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

SourceRecordLicence
CVE ListCVE-2025-62508 changed 2025-10-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-g955-vw6w-v6pp changed 2025-10-20CC-BY-4.0
NVDCVE-2025-62508 changed 2026-10-08Public domain