CVE-2026-55692: Starcitizenwiki/embedvideo Cross-Site Scripting Vulnerability

HIGH
Advisory Identifier: GHSA-5c7p-g73q-rpg5
CVSS 7.5
CWE-80 CWE-79
Published
Advisory Summary

CVE-2026-55692 is a HIGH (CVSS 7.5) cross-site scripting vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting Starcitizenwiki/embedvideo libraries in the Packagist ecosystem. The issue involves stored xss via malformed src url with $wgembedvideorequireconsent enabled. Remediation is available by upgrading affected packages to version 4.1.0.

CVE-2026-55692 at a Glance

CVE Identifier CVE-2026-55692
GHSA Identifier GHSA-5c7p-g73q-rpg5
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Affected Product Starcitizenwiki/embedvideo
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:N/A:N).

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 None (I:N)
Availability None (A:N)

How to Fix CVE-2026-55692

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: 4.1.0
Upgrade starcitizenwiki/embedvideo to 4.1.0
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-2026-55692, 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 4.1.0), 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-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. 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 With $wgEmbedVideoRequireConsent enabled (the default), the urls for videos are stored in a json-ified data attribute`data-mw-iframeconfig`. When given a malformed url or id, the data-mw-iframeconfig attribute can be escaped via single quotes, allowing for html/javascript injection. ### Details The sprintf [here](https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/a573a16d925ee0ea0d34b360856dc8ab0b88f822/includes/EmbedService/EmbedHtmlFormatter.php#L115-L120) adds the iframe config encoded as JSON [here](https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/a573a16d925ee0ea0d34b360856dc8ab0b88f822/includes/EmbedService/AbstractEmbedService.php#L518). When given a malicious url or id with a single quote, the `$this->getUrl()` call returns an unescaped payload that terminates the data-mw-iframeconfig attribute and allows for injecting attributes, including handlers, into the figure element. The id regex for the `archiveorg` service and the url regexes for the `wistia` and `sharepoint` services allow for single quotes to be introduced. ### PoC A couple of examples across services ``` Input: <embedvideo service="archiveorg" id="x' onmouseover='alert(document.domain)' data-x='"></embedvideo> Renders: <figure class="embedvideo" data-service="archiveorg" data-mw-iframeconfig="{&quot;src&quot;:&quot;//archive.org/embed/x" onmouseover="alert(document.domain)" data-x="?autoplay=1&quot;}" style="width:640px"> <div class="embedvideo-wrapper" style="height:493px"><div class="embedvideo-consent" data-show-privacy-notice="1"> ... </div> </figure> ``` ``` Input: {{#ev:wistia|https://wistia.com/medias/x'onmouseover='alert(document.domain)'}} Renders: <figure class="embedvideo" data-service="wistia" data-mw-iframeconfig="{&quot;src&quot;:&quot;//fast.wistia.net/embed/iframe/x" onmouseover="alert(document.domain)" ?autoplay="1&quot;}'" style="width:640px"> <div class="embedvideo-wrapper" style="height:360px"><div class="embedvideo-consent" data-show-privacy-notice="1"> ... </div> </figure> ``` ``` {{#ev:sharepoint|https://a.sharepoint.com/sites/x'onmouseover='alert(document.domain)'.aspx}} ``` ### Impact Under the default $wgEmbedVideoRequireConsent = true configuration, any user able to edit a page can inject arbitrary JavaScript into an HTML event handler attribute (e.g. onfocus) via parameter. It requires no interaction (autofires via autofocus) and executes in the wiki origin for every visitor to the page.

CVE-2026-55692 Affected Starcitizenwiki/embedvideo Versions

1 component(s)
Fixed Versions:
4.1.0
Product / Package Ecosystem Affected Versions Fixed Version
starcitizenwiki/embedvideo
Packagist
< 4.1.0
4.1.0

References

Frequently Asked Questions

What is CVE-2026-55692?
CVE-2026-55692 is a security vulnerability in Starcitizenwiki/embedvideo involving Stored XSS via malformed src url with $wgEmbedVideoRequireConsent enabled under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS).
Which Starcitizenwiki/embedvideo versions are affected?
Affected versions include releases prior to 4.1.0 across affected packages: starcitizenwiki/embedvideo.
What version fixes CVE-2026-55692?
Upgrading to 4.1.0 (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 4.1.0. Upgrade your dependency to 4.1.0 or later.
What is the CVSS score of CVE-2026-55692?
CVE-2026-55692 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-55692?
CVE-2026-55692 is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) (The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages.).
How can I check Packagist dependencies for CVE-2026-55692?
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-5c7p-g73q-rpg5",
  "modified" : "2026-06-19T21:41:57Z",
  "published" : "2026-06-19T21:41:57Z",
  "aliases" : [ "CVE-2026-55692" ],
  "summary" : "StarCitizenWiki Extension Embed Video: Stored XSS via malformed src url with $wgEmbedVideoRequireConsent enabled",
  "details" : "### Summary\nWith $wgEmbedVideoRequireConsent enabled (the default), the urls for videos are stored in a json-ified data attribute`data-mw-iframeconfig`. When given a malformed url or id, the data-mw-iframeconfig attribute can be escaped via single quotes, allowing for html/javascript injection.\n\n### Details\nThe sprintf [here](https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/a573a16d925ee0ea0d34b360856dc8ab0b88f822/includes/EmbedService/EmbedHtmlFormatter.php#L115-L120) adds the iframe config encoded as JSON [here](https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/a573a16d925ee0ea0d34b360856dc8ab0b88f822/includes/EmbedService/AbstractEmbedService.php#L518). When given a malicious url or id with a single quote, the `$this->getUrl()` call returns an unescaped payload that terminates the data-mw-iframeconfig attribute and allows for injecting attributes, including handlers, into the figure element. The id regex for the `archiveorg` service and the url regexes for the `wistia` and `sharepoint` services allow for single quotes to be introduced.\n\n### PoC\nA couple of examples across services\n```\nInput:\n<embedvideo service=\"archiveorg\" id=\"x' onmouseover='alert(document.domain)' data-x='\"></embedvideo>\n\nRenders:\n<figure class=\"embedvideo\" data-service=\"archiveorg\" data-mw-iframeconfig=\"{&quot;src&quot;:&quot;//archive.org/embed/x\" onmouseover=\"alert(document.domain)\" data-x=\"?autoplay=1&quot;}\" style=\"width:640px\">\n<div class=\"embedvideo-wrapper\" style=\"height:493px\"><div class=\"embedvideo-consent\" data-show-privacy-notice=\"1\">\n...\n</div>\n</figure>\n```\n\n```\nInput:\n{{#ev:wistia|https://wistia.com/medias/x'onmouseover='alert(document.domain)'}}\n\nRenders:\n<figure class=\"embedvideo\" data-service=\"wistia\" data-mw-iframeconfig=\"{&quot;src&quot;:&quot;//fast.wistia.net/embed/iframe/x\" onmouseover=\"alert(document.domain)\" ?autoplay=\"1&quot;}'\" style=\"width:640px\">\n<div class=\"embedvideo-wrapper\" style=\"height:360px\"><div class=\"embedvideo-consent\" data-show-privacy-notice=\"1\">\n...\n</div>\n</figure>\n```\n\n```\n{{#ev:sharepoint|https://a.sharepoint.com/sites/x'onmouseover='alert(document.domain)'.aspx}}\n```\n\n### Impact\nUnder the default $wgEmbedVideoRequireConsent = true configuration, any user able to edit a page can inject arbitrary JavaScript into an HTML event handler attribute (e.g. onfocus) via parameter. It requires no interaction (autofires via autofocus) and executes in the wiki origin for every visitor to the page.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "starcitizenwiki/embedvideo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.1.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.0.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/security/advisories/GHSA-5c7p-g73q-rpg5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/commit/370156335b325bb81d14d89edf0a1f2643d50a84"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/releases/tag/v4.1.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79", "CWE-80" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-19T21:41:57Z",
    "nvd_published_at" : null
  }
}