CVE-2025-59839
JSON

8.6high

Star Citizen EmbedVideo Extension Stored XSS through wikitext caused by usage of non-reserved data attributes

Severity
8.6high CVSS:3.1 by GitHub_M
Exploit likelihood
0.32% (higher than 27% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-4j5h-mvj3-m48v

Description

The EmbedVideo Extension is a MediaWiki extension which adds a parser function called #ev and various parser tags for embedding video clips from various video sharing services. In versions 4.0.0 and prior, the EmbedVideo extension allows adding arbitrary attributes to an HTML element, allowing for stored XSS through wikitext. This issue has been patched via commit 4e075d3.

Affected

Product or packageVersionsReported by
StarCitizenWiki mediawiki-extensions-EmbedVideo<= 4.0.0CVE List
starcitizenwiki/embedvideo (Packagist)up to 4.0.0GitHub Advisory Database
star-citizen embedvideoup to 4.0.0NVD

All scores

GitHub_M8.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
GitHub8.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

The EmbedVideo Extension is a MediaWiki extension which adds a parser function called #ev and various parser tags for embedding video clips from various video sharing services. In versions 4.0.0 and prior, the EmbedVideo extension allows adding arbitrary attributes to an HTML element, allowing for stored XSS through wikitext. This issue has been patched via commit 4e075d3.

GitHub Advisory Database
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:
<div class="embedvideo-evl" data-iframeconfig='{"onload": "alert(1)"}'>Click me!</div>
<evlplayer></evlplayer>
  1. Click on the "Click me!" text
  2. Click on the "Load video" button below image
Impact

Arbitrary HTML can be inserted into the DOM by any user, allowing for JavaScript to be executed.

NVD (es)

La extensión EmbedVideo es una extensión de MediaWiki que añade una función de analizador sintáctico llamada #ev y varias etiquetas de analizador sintáctico para incrustar videoclips de varios servicios de intercambio de videos. En las versiones 4.0.0 y anteriores, la extensión EmbedVideo permite añadir atributos arbitrarios a un elemento HTML, lo que permite XSS almacenado a través de wikitexto. Este problema ha sido parcheado mediante el commit 4e075d3.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-59839 changed 2025-09-25CVE Terms of Use
GitHub Advisory DatabaseGHSA-4j5h-mvj3-m48v changed 2026-09-10CC-BY-4.0
NVDCVE-2025-59839 changed 2026-10-11Public domain