{"id":"CVE-2025-49578","aliases":["CVE-2025-49578","GHSA-2v3v-3whp-953h"],"related":[],"kind":"vulnerability","state":"published","title":"Citizen allows stored XSS in user registration date message","summary":"Citizen is a MediaWiki skin that makes extensions part of the cohesive experience. Various date messages returned by `Language::userDate` are inserted into 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. Various date messages returned by `Language::userDate` are inserted into 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\nVarious date messages returned by `Language::userDate` are inserted into raw HTML, allowing anybody who can edit those messages to insert arbitrary HTML into the DOM.\n\n### Details\nThe result of `$this->lang->userDate( $timestamp, $this->user )` returns unescaped values, but is inserted as raw HTML by Citizen:\nhttps://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/072e4365e9084e4b153eac62d3666566c06f5a49/includes/Components/CitizenComponentUserInfo.php#L55-L60\n\n### PoC\n1. Go to any page using citizen with the uselang parameter set to x-xss and while being logged in\nDepending on the registration date of the account you're logged in with, various messages can be shown. In my case, it's `november`:\n![image](https://github.com/user-attachments/assets/252a3453-99c8-4ce1-b6d6-a8485b7a9a43)\n\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. Varios mensajes de fecha devueltos por `Language::userDate` se insertan en 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:49.300Z","modified":"2026-06-17T09:31:31.357Z","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:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 64cb5d7ab3a6dc0381fae54b31e8fc4afadc8beb, < 93c36ac778397e0e7c46cf7adb1e5d848265f1bd","status":"affected"},{"version":">= 3.3.0, < 3.3.1","status":"affected"}],"vendor":"StarCitizenTools","product":"mediawiki-skins-Citizen","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.3.0","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-2v3v-3whp-953h","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/64cb5d7ab3a6dc0381fae54b31e8fc4afadc8beb","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-49578","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:11:37.150Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-49578","url":"https://www.cve.org/CVERecord?id=CVE-2025-49578","licence":"CVE Terms of Use","modified":"2025-06-12T19:12:17.575Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2v3v-3whp-953h","url":"https://github.com/advisories/GHSA-2v3v-3whp-953h","licence":"CC-BY-4.0","modified":"2025-06-13T14:29:35.716Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-49578","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49578","licence":"Public domain","modified":"2026-06-17T09:31:31.357Z"}],"updatedAt":"2026-11-25T22:58:59.176Z","epss":{"score":0.00631,"percentile":0.44825,"date":"2026-11-30T12:00:22.000Z"}}