GitHub Advisoryadvisory · Packagist

GHSA-4j5h-mvj3-m48v Star Citizen EmbedVideo Extension Stored XSS through wikitext caused by usage of non-reserved data attributes

HIGH Published 2025-09-24 Modified 2025-09-26 Official page ↗
Aliases
CVE-2025-59839
Ecosystem
Packagist
Packages
starcitizenwiki/embedvideo
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
Weaknesses
CWE-79
Reviewed
2025-09-24

Affected packages

• Packagist starcitizenwiki/embedvideo: <= 4.0.0 (no fix yet)

Description

Summary The EmbedVideo extension allows adding arbitrary attributes to an HTML element, allowing for stored XSS through wikitext. Details The attributes of an iframe are populated with the value of an unreserved data attribute (`data-iframeconfig`) that can be set via wikitext: https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/440fb331a84b2050f4cc084c1d31d58a1d1c202d/resources/ext.embedVideo.videolink.js#L5-L20 Similar code is also present here: https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/440fb331a84b2050f4cc084c1d31d58a1d1c202d/resources/modules/iframe.js#L139-L155 It is possible to execute JS through attributes like `onload` or `onmouseenter`. PoC 1. Create a page with the following contents: ```html Click me! ``` 2. Click on the "Click me!" text 3. Click on the "Load video" button below Impact Arbitrary HTML can be inserted into the DOM by any user, allowing for JavaScript to be executed.

Related

Alias · CVE (1)

  • CVE-2025-59839 The EmbedVideo Extension is a MediaWiki extension which adds a parser function called #ev and various parser tags for embedding video clips… vulnerability

Weakness · CWE (1)

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

References