{"id":"CVE-2024-47536","aliases":["GHSA-62r2-gcxr-426x"],"url":"https://o3.security/vulnerability/CVE-2024-47536","summary":"starcitizentools/citizen-skin vulnerable to stored, self-XSS in the \"real name\" field","details":"### Summary\nA user with the `editmyprivateinfo` right or who can otherwise change their name can XSS themselves by setting their \"real name\" to an XSS payload.\n\n### Details\nHere's the offending line:\nhttps://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/d45c3d69f30863f622f16eb40dd41d3ca943454a/includes/Components/CitizenComponentUserInfo.php#L137\n\nThis was introduced in 717d16af35b10dab04d434aefddbf991fc8c168c\n\n### PoC\n1. Login\n2. Go to Special:Preferences\n3. Set the real name field to a string like `<script>alert(\"Admin with a propensity for self-XSSes\")</script>`\n4. Save your settings and use Citizen if it's not being used already\n\n![](https://github.com/user-attachments/assets/22adbb70-fcd7-4f81-8e53-1f5f3a730270)\n\n### Impact\nAny user who can change their name (whether it's through the editmyprivateinfo right or through other means) can add XSS payloads that trigger for themselves only. ","published":"2024-09-30T17:09:40.192Z","modified":"2026-08-12T03:51:35.628413584Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"starcitizentools/citizen-skin","fixedVersion":"2.31.0"}],"fix":{"url":"https://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/717d16af35b10dab04d434aefddbf991fc8c168c","label":"StarCitizenTools/mediawiki-skins-Citizen@717d16a"},"references":[{"type":"WEB","url":"https://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/d45c3d69f30863f622f16eb40dd41d3ca943454a/includes/Components/CitizenComponentUserInfo.php#L137"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47536.json"},{"type":"ADVISORY","url":"https://github.com/StarCitizenTools/mediawiki-skins-Citizen/security/advisories/GHSA-62r2-gcxr-426x"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47536"},{"type":"FIX","url":"https://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/717d16af35b10dab04d434aefddbf991fc8c168c"},{"type":"FIX","url":"https://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/86da3e07718c8d8da6f4310386fef85599606f9b"},{"type":"PACKAGE","url":"https://github.com/StarCitizenTools/mediawiki-skins-Citizen"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:35.628413584Z"}}