CVE-2024-47536: starcitizentools/citizen-skin vulnerable to stored, self-XSS in the "real name" field
Summary A user with the editmyprivateinfo right or who can otherwise change their name can XSS themselves by setting their "real name" to an XSS payload. Details Here's the offending line: https://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/d45c3d69f30863f622f16eb40dd41d3ca943454a/includes/Components/CitizenComponentUserInfo.php#L137 This was introduced in 717d16af35b10dab04d434aefddbf991fc8c168c PoC 1.
Published Sep 30, 2024
Affected packages
starcitizentools/citizen-skin
- Ecosystem
- Composer (PHP)
- Affected
- >= 2.6.3, < 2.31.0
- Fixed in
- 2.31.0
- Check
composer show starcitizentools/citizen-skin
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
A user with the editmyprivateinfo right or who can otherwise change their name can XSS themselves by setting their "real name" to an XSS payload.
Details
Here's the offending line: https://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/d45c3d69f30863f622f16eb40dd41d3ca943454a/includes/Components/CitizenComponentUserInfo.php#L137
This was introduced in 717d16af35b10dab04d434aefddbf991fc8c168c
PoC
- Login
- Go to Special:Preferences
- Set the real name field to a string like
<script>alert("Admin with a propensity for self-XSSes")</script> - Save your settings and use Citizen if it's not being used already
https://github.com/user-attachments/assets/22adbb70-fcd7-4f81-8e53-1f5f3a730270
Impact
Any 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.
Credited to BlankEclair.
References
- https://github.com/StarCitizenTools/mediawiki-skins-Citizen/security/advisories/GHSA-62r2-gcxr-426x
- https://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/717d16af35b10dab04d434aefddbf991fc8c168c
- https://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/86da3e07718c8d8da6f4310386fef85599606f9b
- https://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/d45c3d69f30863f622f16eb40dd41d3ca943454a/includes/Components/CitizenComponentUserInfo.php#L137
- https://nvd.nist.gov/vuln/detail/CVE-2024-47536
- https://github.com/advisories/GHSA-62r2-gcxr-426x
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2025-62508
Citizen vulnerable to stored XSS in sticky header button messages
medium6.5Oct 20, 2025CVE-2025-53368
starcitizentools/citizen-skin is vulnerable to Stored XSS attack in the legacy search bar through page descriptions
high8.6Jul 3, 2025CVE-2025-53370
Citizen vulnerable to Stored XSS through short descriptions
high8.6Jul 3, 2025CVE-2025-49576
starcitizentools/citizen-skin allows stored XSS in search no result messages
medium6.5Jun 13, 2025CVE-2025-49577
starcitizentools/citizen-skin allows stored XSS in preference menu heading messages
medium6.5Jun 13, 2025CVE-2025-49578
starcitizentools/citizen-skin allows stored XSS in user registration date message
medium6.5Jun 13, 2025
