GHSA-g955-vw6w-v6pp

Suggest an improvement
Source
https://github.com/advisories/GHSA-g955-vw6w-v6pp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-g955-vw6w-v6pp/GHSA-g955-vw6w-v6pp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-g955-vw6w-v6pp
Aliases
Published
2025-10-20T15:31:06Z
Modified
2025-10-20T16:17:56Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Citizen vulnerable to stored XSS in sticky header button messages
Details

Summary

The JS implementation for copying button labels to the sticky header in the Citizen skin unescapes HTML characters, allowing for stored XSS through system messages.

Details

In the copyButtonAttributes function in stickyHeader.js, when copying the button labels, the innerHTML of the new element is set to the textContent of the old element: https://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/f4cbcecf5aca0ae69966b23d4983f9cb5033f319/resources/skins.citizen.scripts/stickyHeader.js#L29-L41 This unescapes any escaped HTML characters and causes the contents of the system messages to be interpreted as HTML.

PoC

  1. Edit any of the affected messages (citizen-share, citizen-view-history, citizen-view-edit, nstab-talk) to the following payload: <img src="" onerror="alert('Sticky Header Button XSS')">.
  2. Visit any mainpage article in the wiki using the Citizen skin.
image image

Impact

This impacts wikis where a group has the editinterface but not the editsitejs user right. By default, this is the case for the sysop group.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-10-20T15:31:06Z",
    "nvd_published_at":  "2025-10-17T21:15:36Z",
    "severity":  "MODERATE"
}
References

Affected packages

Packagist / starcitizentools/citizen-skin

Package

Name
starcitizentools/citizen-skin
Purl
pkg:composer/starcitizentools/citizen-skin

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.3.0
Fixed
3.9.0

Affected versions

v3.*
v3.3.0
v3.3.1
v3.3.2
v3.4.0
v3.5.0
v3.6.0
v3.7.0
v3.8.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-g955-vw6w-v6pp/GHSA-g955-vw6w-v6pp.json"