GitHub Advisoryadvisory · Packagist

GHSA-jwr7-992g-68mh starcitizentools/citizen-skin allows stored XSS in preference menu heading messages

MEDIUM Published 2025-06-13 Modified 2025-06-13 Official page ↗
Aliases
CVE-2025-49577
Ecosystem
Packagist
Packages
starcitizentools/citizen-skin
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
Weaknesses
CWE-79
Reviewed
2025-06-13

Affected packages

• Packagist starcitizentools/citizen-skin: >= 2.13.0, < 3.3.1 → fixed in 3.3.1

Description

Summary Various preferences messages are inserted into raw HTML, allowing anybody who can edit those messages to insert arbitrary HTML into the DOM. Details The `innerHtml` of the label div is set to the `textContent` of the label, essentially unsanitizing the system messages: https://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/407052e7069bdeae927d6f1a2a1c9a45b473bf9a/resources/skins.citizen.preferences/addPortlet.polyfill.js#L18 PoC 1. Edit `citizen-feature-custom-font-size-name` (or any other message displayed in a heading in the preferences menu) to `` (script tags don't work here due to the way the HTML is inserted) 2. Open the preferences menu

Related

Alias · CVE (1)

  • CVE-2025-49577 Citizen is a MediaWiki skin that makes extensions part of the cohesive experience. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References