Mediawiki EmbedVideo Extension has stored XSS via malformed src url with $wgEmbedVideoRequireConsent disabled
High severity. Published 25 September 2026. Update starcitizenwiki/embedvideo to 4.1.0 or later: composer update starcitizenwiki/embedvideo.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| starcitizenwiki/embedvideo (opens in a new tab) | <= 4.0.0 | 4.1.0 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show starcitizenwiki/embedvideo
composer auditAdvisory details
| Severity | HighCVSS 7.5 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-57440 (opens in a new tab) |
| GHSA | GHSA-v65j-hff3-753c (opens in a new tab) |
| Weakness | CWE-79, CWE-80 |
What the advisory says
Summary With $wgEmbedVideoRequireConsent disabled (not the default), the urls for videos are passed into an iframe src attribute without sanitization. When given a malformed url or id, the src attribute can be escaped via double quotes, allowing for html/javascript injection.
Details The iframe assembled here adds the url from getUrl() as the src without sanitization. The id regex for the archiveorg service and the url regexes for the wistia and sharepoint services allow for double quotes to be introduced.
PoC Using double quotes, the src attribute can be escaped.
Source: GHSA-v65j-hff3-753c (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .