CVE-2024-47536: Starcitizentools/citizen skin Cross-Site Scripting Vulnerability
MODERATECVE-2024-47536 is a MODERATE (CVSS 4.6) cross-site scripting vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting Starcitizentools/citizen skin libraries in the Packagist ecosystem. The issue involves starcitizentools/citizen-skin vulnerable to stored, self-xss in the "real name" field. Remediation is available by upgrading affected packages to version 2.31.0.
CVE-2024-47536 at a Glance
Security Impact
CVSS: 4.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N).
How to Fix CVE-2024-47536
To remediate this vulnerability, upgrade all affected Starcitizentools/citizen skin dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade starcitizentools/citizen-skin to 2.31.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for starcitizentools/citizen-skin
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-47536, inspect your project dependencies for Starcitizentools/citizen skin:
inspect dependencies for starcitizentools/citizen-skin
Analyze the terminal output to locate any version of Starcitizentools/citizen skin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.31.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. In Starcitizentools/citizen skin, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-47536 Affected Starcitizentools/citizen skin Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
starcitizentools/citizen-skin
|
Packagist |
≥ 2.6.3
< 2.31.0
|
2.31.0
|
References
Frequently Asked Questions
What is CVE-2024-47536?
Which Starcitizentools/citizen skin versions are affected?
What version fixes CVE-2024-47536?
Is starcitizentools/citizen-skin affected?
What is the CVSS score of CVE-2024-47536?
What CWE is associated with CVE-2024-47536?
How can I check Packagist dependencies for CVE-2024-47536?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-62r2-gcxr-426x",
"modified" : "2024-09-30T20:11:49Z",
"published" : "2024-09-30T17:48:33Z",
"aliases" : [ "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\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. ",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "starcitizentools/citizen-skin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.6.3"
}, {
"fixed" : "2.31.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"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" : "WEB",
"url" : "https://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/717d16af35b10dab04d434aefddbf991fc8c168c"
}, {
"type" : "WEB",
"url" : "https://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/86da3e07718c8d8da6f4310386fef85599606f9b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/StarCitizenTools/mediawiki-skins-Citizen"
}, {
"type" : "WEB",
"url" : "https://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/d45c3d69f30863f622f16eb40dd41d3ca943454a/includes/Components/CitizenComponentUserInfo.php#L137"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79", "CWE-80" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-30T17:48:33Z",
"nvd_published_at" : "2024-09-30T17:15:04Z"
}
}