CVE-2025-59839: Starcitizenwiki/embedvideo Cross-Site Scripting Vulnerability
HIGHCVE-2025-59839 is a HIGH (CVSS 8.6) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Starcitizenwiki/embedvideo libraries in the Packagist ecosystem. The issue involves star citizen embedvideo extension stored xss through wikitext caused by usage of non-reserved data attributes. Remediation is available in the latest vendor maintenance releases.
CVE-2025-59839 at a Glance
Security Impact
CVSS: 8.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L).
How to Fix CVE-2025-59839
To remediate this vulnerability, upgrade all affected Starcitizenwiki/embedvideo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade starcitizenwiki/embedvideo to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for starcitizenwiki/embedvideo
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-59839, inspect your project dependencies for Starcitizenwiki/embedvideo:
inspect dependencies for starcitizenwiki/embedvideo
Analyze the terminal output to locate any version of Starcitizenwiki/embedvideo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Starcitizenwiki/embedvideo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-59839 Affected Starcitizenwiki/embedvideo Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
starcitizenwiki/embedvideo
|
Packagist |
≤ 4.0.0
|
|
References
Frequently Asked Questions
What is CVE-2025-59839?
Which Starcitizenwiki/embedvideo versions are affected?
What version fixes CVE-2025-59839?
Is starcitizenwiki/embedvideo affected?
What is the CVSS score of CVE-2025-59839?
What CWE is associated with CVE-2025-59839?
How can I check Packagist dependencies for CVE-2025-59839?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4j5h-mvj3-m48v",
"modified" : "2025-09-26T16:30:00Z",
"published" : "2025-09-24T20:11:17Z",
"aliases" : [ "CVE-2025-59839" ],
"summary" : "Star Citizen EmbedVideo Extension Stored XSS through wikitext caused by usage of non-reserved data attributes",
"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<div class=\"embedvideo-evl\" data-iframeconfig='{\"onload\": \"alert(1)\"}'>Click me!</div>\n<evlplayer></evlplayer>\n```\n2. Click on the \"Click me!\" text\n3. Click on the \"Load video\" button below\n<img width=\"855\" height=\"404\" alt=\"image\" src=\"https://github.com/user-attachments/assets/afb3839a-012c-4e90-a208-a6137b704ccd\" />\n\n\n### Impact\nArbitrary HTML can be inserted into the DOM by any user, allowing for JavaScript to be executed.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "starcitizenwiki/embedvideo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "4.0.0"
} ]
} ]
} ],
"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"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-24T20:11:17Z",
"nvd_published_at" : "2025-09-25T14:15:46Z"
}
}