CVE-2025-59839: Starcitizenwiki/embedvideo Cross-Site Scripting Vulnerability

HIGH
Advisory Identifier: GHSA-4j5h-mvj3-m48v
CVSS 8.6
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-59839
GHSA Identifier GHSA-4j5h-mvj3-m48v
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Starcitizenwiki/embedvideo
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability Low (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.

starcitizenwiki/embedvideo fixed: Latest secure release
Upgrade starcitizenwiki/embedvideo to Latest secure release
Verify Direct and Transitive Dependencies

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

### 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 <div class="embedvideo-evl" data-iframeconfig='{"onload": "alert(1)"}'>Click me!</div> <evlplayer></evlplayer> ``` 2. Click on the "Click me!" text 3. Click on the "Load video" button below <img width="855" height="404" alt="image" src="https://github.com/user-attachments/assets/afb3839a-012c-4e90-a208-a6137b704ccd" /> ### Impact Arbitrary HTML can be inserted into the DOM by any user, allowing for JavaScript to be executed.

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?
CVE-2025-59839 is a security vulnerability in Starcitizenwiki/embedvideo involving Star Citizen EmbedVideo Extension Stored XSS through wikitext caused by usage of non-reserved data attributes under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Starcitizenwiki/embedvideo versions are affected?
Affected versions include releases prior to current release patches across affected packages: starcitizenwiki/embedvideo.
What version fixes CVE-2025-59839?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is starcitizenwiki/embedvideo affected?
Yes, starcitizenwiki/embedvideo is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-59839?
CVE-2025-59839 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L.
What CWE is associated with CVE-2025-59839?
CVE-2025-59839 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Packagist dependencies for CVE-2025-59839?
Run the dependency tree command: 'inspect dependencies for starcitizenwiki/embedvideo'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}