{"id":"CVE-2025-49579","aliases":["CVE-2025-49579","GHSA-g3cp-pq72-hjpv"],"related":[],"kind":"vulnerability","state":"published","title":"Citizen allows stored XSS in menu heading message","summary":"Citizen is a MediaWiki skin that makes extensions part of the cohesive experience. All system messages in menu headings using the Menu.mustache template are inserted as raw HTML, allowing anybody who can edit those messages to insert arbitrary HTML into the DOM. This impacts wikis where a group has the `editinterface` but not the `editsitejs` user right. This vulnerability is fixed in 3.3.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Citizen is a MediaWiki skin that makes extensions part of the cohesive experience. All system messages in menu headings using the Menu.mustache template are inserted as raw HTML, allowing anybody who can edit those messages to insert arbitrary HTML into the DOM. This impacts wikis where a group has the `editinterface` but not the `editsitejs` user right. This vulnerability is fixed in 3.3.1.","source":"cvelist"},{"lang":"en","text":"### Summary\nAll system messages in menu headings using the Menu.mustache template are inserted as raw HTML, allowing anybody who can edit those messages to insert arbitrary HTML into the DOM.\n\n### Details\nThe system messages for menu headings are inserted unescaped into raw HTML:\nhttps://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/072e4365e9084e4b153eac62d3666566c06f5a49/templates/Menu.mustache#L8-L10\n\n### PoC\n1. Go to any article using citizen with the `uselang` parameter set to `x-xss`\n2. A large number of alerts will be shown for various messages, e.g.:\n![image](https://github.com/user-attachments/assets/6a18ec77-d2a0-4a0d-b4aa-83359304659a)\n![image](https://github.com/user-attachments/assets/eaadb8e1-58b6-41be-90d2-829c50cf75ac)\n\nOn the main page of my test wiki, the following messages were shown: `navigation`, `notifications`, `user-interface-preferences`, `personaltools`, `variants`, `views`, `associated-pages`, `cactions` and `toolbox`.\n\n### Impact\nThis impacts wikis where a group has the `editinterface` but not the `editsitejs` user right.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Citizen es una interfaz de MediaWiki que integra las extensiones en la experiencia cohesiva. Todos los mensajes del sistema en los encabezados de menú que usan la plantilla Menu.mustache se insertan como HTML sin formato, lo que permite que cualquiera que pueda editarlos inserte HTML arbitrario en el DOM. Esto afecta a las wikis donde un grupo tiene el permiso de usuario `editinterface` pero no el de `editsitejs`. Esta vulnerabilidad se corrigió en la versión 3.3.1.","source":"nvd"}],"published":"2025-06-12T18:50:44.360Z","modified":"2026-06-17T09:31:31.470Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 54c8717d45ce1594918f11cb9ce5d0ccd8dfee65, < 93c36ac778397e0e7c46cf7adb1e5d848265f1bd","status":"affected"},{"version":">= 2.4.2, < 3.3.1","status":"affected"}],"vendor":"StarCitizenTools","product":"mediawiki-skins-Citizen","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.4.2","status":"affected","fixed":"3.3.1"}],"ecosystem":"Packagist","package":"starcitizentools/citizen-skin","purl":"pkg:composer/starcitizentools/citizen-skin","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.3.1"}],"vendor":"starcitizen.tools","product":"citizen","cpe":"cpe:2.3:a:starcitizen.tools:citizen:*:*:*:*:*:mediawiki:*:*","source":"nvd"}],"references":[{"url":"https://github.com/StarCitizenTools/mediawiki-skins-Citizen/security/advisories/GHSA-g3cp-pq72-hjpv","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/54c8717d45ce1594918f11cb9ce5d0ccd8dfee65","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/93c36ac778397e0e7c46cf7adb1e5d848265f1bd","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49579","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/StarCitizenTools/mediawiki-skins-Citizen","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-06-12T19:16:32.802Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-49579","url":"https://www.cve.org/CVERecord?id=CVE-2025-49579","licence":"CVE Terms of Use","modified":"2025-06-12T19:16:43.720Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g3cp-pq72-hjpv","url":"https://github.com/advisories/GHSA-g3cp-pq72-hjpv","licence":"CC-BY-4.0","modified":"2025-06-13T14:29:35.785Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-49579","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49579","licence":"Public domain","modified":"2026-06-17T09:31:31.470Z"}],"updatedAt":"2026-11-25T22:58:59.177Z","epss":{"score":0.00427,"percentile":0.38875,"date":"2026-12-01T12:00:22.000Z"}}