GHSA-4J5H-MVJ3-M48V
Vulnerability from github – Published: 2025-09-24 20:11 – Updated: 2025-09-26 16:30Summary
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
- Create a page with the following contents:
<div class="embedvideo-evl" data-iframeconfig='{"onload": "alert(1)"}'>Click me!</div>
<evlplayer></evlplayer>
- Click on the "Click me!" text
- 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.
{
"affected": [
{
"package": {
"ecosystem": "Packagist",
"name": "starcitizenwiki/embedvideo"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "4.0.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2025-59839"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2025-09-24T20:11:17Z",
"nvd_published_at": "2025-09-25T14:15:46Z",
"severity": "HIGH"
},
"details": "### Summary\nThe EmbedVideo extension allows adding arbitrary attributes to an HTML element, allowing for stored XSS through wikitext.\n\n### Details\n\nThe attributes of an iframe are populated with the value of an unreserved data attribute (`data-iframeconfig`) that can be set via wikitext:\nhttps://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/440fb331a84b2050f4cc084c1d31d58a1d1c202d/resources/ext.embedVideo.videolink.js#L5-L20\nSimilar code is also present here:\nhttps://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/440fb331a84b2050f4cc084c1d31d58a1d1c202d/resources/modules/iframe.js#L139-L155\n\nIt is possible to execute JS through attributes like `onload` or `onmouseenter`.\n\n### PoC\n\n1. Create a page with the following contents:\n```html\n\u003cdiv class=\"embedvideo-evl\" data-iframeconfig=\u0027{\"onload\": \"alert(1)\"}\u0027\u003eClick me!\u003c/div\u003e\n\u003cevlplayer\u003e\u003c/evlplayer\u003e\n```\n2. Click on the \"Click me!\" text\n3. Click on the \"Load video\" button below\n\u003cimg width=\"855\" height=\"404\" alt=\"image\" src=\"https://github.com/user-attachments/assets/afb3839a-012c-4e90-a208-a6137b704ccd\" /\u003e\n\n\n### Impact\nArbitrary HTML can be inserted into the DOM by any user, allowing for JavaScript to be executed.",
"id": "GHSA-4j5h-mvj3-m48v",
"modified": "2025-09-26T16:30:00Z",
"published": "2025-09-24T20:11:17Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/security/advisories/GHSA-4j5h-mvj3-m48v"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-59839"
},
{
"type": "WEB",
"url": "https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/commit/4e075d3dc9a15a3ee53f449a684d5ab847e52f01"
},
{
"type": "PACKAGE",
"url": "https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo"
},
{
"type": "WEB",
"url": "https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/440fb331a84b2050f4cc084c1d31d58a1d1c202d/resources/ext.embedVideo.videolink.js#L5-L20"
},
{
"type": "WEB",
"url": "https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/440fb331a84b2050f4cc084c1d31d58a1d1c202d/resources/modules/iframe.js#L139-L155"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L",
"type": "CVSS_V3"
}
],
"summary": "Star Citizen EmbedVideo Extension Stored XSS through wikitext caused by usage of non-reserved data attributes"
}
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.