{"id":"CVE-2026-55691","aliases":["CVE-2026-55691","GHSA-7h5p-637f-jfr7"],"related":[],"kind":"vulnerability","state":"published","title":"EmbedVideo Extension : Stored XSS via unsanitized class passed to template","summary":"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. Prior to 4.1.0, EmbedHtmlFormatter::toHtml in includes/EmbedService/EmbedHtmlFormatter.php passes the user-supplied class value directly to sprintf while constructing a figure element. A quote in the class value can terminate the class attribute and inject arbitrary HTML attributes or markup into the rendered page. A user able to edit a wiki page can store JavaScript that executes for visitors who render the affected content. This issue is fixed in version 4.1.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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. Prior to 4.1.0, EmbedHtmlFormatter::toHtml in includes/EmbedService/EmbedHtmlFormatter.php passes the user-supplied class value directly to sprintf while constructing a figure element. A quote in the class value can terminate the class attribute and inject arbitrary HTML attributes or markup into the rendered page. A user able to edit a wiki page can store JavaScript that executes for visitors who render the affected content. This issue is fixed in version 4.1.0.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe user supplied class value is fed directly into the sprintf call that creates HTML. You can add a quote to escape the class and then inject arbitrary html/javascript to the final output.\n\n### Details\nThe template [here](https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/a573a16d925ee0ea0d34b360856dc8ab0b88f822/includes/EmbedService/EmbedHtmlFormatter.php#L138) adds a figure with a class that is substituted in. This value is provided to sprintf [here](https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/a573a16d925ee0ea0d34b360856dc8ab0b88f822/includes/EmbedService/EmbedHtmlFormatter.php#L156), an unescaped version of the class supplied by the user.\n\n```\n$template = <<<HTML\n    <figure class=\"%s\" data-service=\"%s\" %s %s>\n        <div class=\"embedvideo-wrapper\" %s>%s%s%s</div>%s\n    </figure>\nHTML;\n```\n\n### PoC\nNote the double quote immediately following the single quote to escape the class attribute in the template:\n```\n<youtube class='\" onmouseover=\"alert(document.domain)' id=\"dQw4w9WgXcQ\">dQw4w9WgXcQ</youtube>\n```\n\n### Impact\nArbitrary HTML can be inserted into the DOM by any user on any page, allowing for JavaScript to be executed.","format":"markdown","source":"ghsa"}],"published":"2026-06-19T21:15:03.000Z","modified":"2026-09-30T17:51:56.193Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","score":8.6,"rating":"HIGH"}],"cwes":["CWE-79","CWE-80"],"affected":[{"ranges":[{"version":"< 4.1.0","status":"affected"}],"vendor":"StarCitizenWiki","product":"mediawiki-extensions-EmbedVideo","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.1.0"}],"ecosystem":"Packagist","package":"starcitizenwiki/embedvideo","purl":"pkg:composer/starcitizenwiki/embedvideo","source":"ghsa"}],"references":[{"url":"https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/security/advisories/GHSA-7h5p-637f-jfr7","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/commit/370156335b325bb81d14d89edf0a1f2643d50a84","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/releases/tag/v4.1.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-09-16T15:44:19.616Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-55691","url":"https://www.cve.org/CVERecord?id=CVE-2026-55691","licence":"CVE Terms of Use","modified":"2026-09-16T15:44:27.031Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7h5p-637f-jfr7","url":"https://github.com/advisories/GHSA-7h5p-637f-jfr7","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:48.730Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-55691","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55691","licence":"Public domain","modified":"2026-09-30T17:51:56.193Z"}],"updatedAt":"2026-11-25T22:59:38.596Z","epss":{"score":0.00358,"percentile":0.31564,"date":"2026-12-01T12:00:22.000Z"}}