{"id":"CVE-2025-49576","aliases":["CVE-2025-49576","GHSA-86xf-2mgp-gv3g"],"related":[],"kind":"vulnerability","state":"published","title":"Citizen allows stored XSS in search no result messages","summary":"Citizen is a MediaWiki skin that makes extensions part of the cohesive experience. The citizen-search-noresults-title and citizen-search-noresults-desc system messages are inserted into raw HTML, allowing anybody who can edit those messages to insert arbitrary HTML into the DOM. 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. The citizen-search-noresults-title and citizen-search-noresults-desc system messages are inserted into raw HTML, allowing anybody who can edit those messages to insert arbitrary HTML into the DOM. This vulnerability is fixed in 3.3.1.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe `citizen-search-noresults-title` and `citizen-search-noresults-desc` system messages are inserted into raw HTML, allowing anybody who can edit those messages to insert arbitrary HTML into the DOM.\n\n### Details\nThe system messages are inserted as raw HTML by the mustache template:\nhttps://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/407052e7069bdeae927d6f1a2a1c9a45b473bf9a/resources/skins.citizen.search/templates/TypeaheadPlaceholder.mustache#L8-L9\n\n\n### PoC\n1. Edit `citizen-search-noresults-title` and `citizen-search-noresults-desc` to `<img src=\"\" onerror=\"alert('citizen-search-noresults-title')\">` and `<img src=\"\" onerror=\"alert('citizen-search-noresults-desc')\">` (script tags don't work here due to the way the HTML is inserted)\n2. Open the search bar and search for a page that doesn't exist to get the \"no results\" messages to show up\n\n![image](https://github.com/user-attachments/assets/cf2963bc-5c86-4a4d-8574-de92d89d6d81)\n![image](https://github.com/user-attachments/assets/44839a7e-c08c-4df9-bd84-0f5863f64163)\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. Los mensajes de sistema citizen-search-noresults-title y citizen-search-noresults-desc se insertan en HTML sin formato, lo que permite que cualquiera que pueda editarlos inserte HTML arbitrario en el DOM. Esta vulnerabilidad se corrigió en la versión 3.3.1.","source":"nvd"}],"published":"2025-06-12T18:50:55.931Z","modified":"2026-06-17T09:31:31.133Z","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":">= a0296afaedbe1a277337a2d8f1da83cb3a79b9ab, < 93c36ac778397e0e7c46cf7adb1e5d848265f1bd","status":"affected"},{"version":">= 2.31.0, < 3.3.1","status":"affected"}],"vendor":"StarCitizenTools","product":"mediawiki-skins-Citizen","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.31.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-86xf-2mgp-gv3g","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"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://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/a0296afaedbe1a277337a2d8f1da83cb3a79b9ab","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49576","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:04:28.559Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-49576","url":"https://www.cve.org/CVERecord?id=CVE-2025-49576","licence":"CVE Terms of Use","modified":"2025-06-12T19:05:48.122Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-86xf-2mgp-gv3g","url":"https://github.com/advisories/GHSA-86xf-2mgp-gv3g","licence":"CC-BY-4.0","modified":"2025-06-13T14:42:12.326Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-49576","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49576","licence":"Public domain","modified":"2026-06-17T09:31:31.133Z"}],"updatedAt":"2026-11-25T22:58:59.176Z","epss":{"score":0.00444,"percentile":0.40335,"date":"2026-12-01T12:00:22.000Z"}}