# Mediawiki EmbedVideo Extension has stored XSS via malformed src url with $wgEmbedVideoRequireConsent disabled

High severity, published 2026-09-25. Update starcitizenwiki/embedvideo to 4.1.0 or later: composer update starcitizenwiki/embedvideo.

Canonical URL: https://buzzphp.com/security/ghsa-v65j-hff3-753c · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 7.5) |
| Published | 2026-09-25 |
| Updated | 2026-10-13 |
| CVE | [CVE-2026-57440](https://nvd.nist.gov/vuln/detail/CVE-2026-57440) |
| GHSA | [GHSA-v65j-hff3-753c](https://github.com/advisories/GHSA-v65j-hff3-753c) |
| Weakness | CWE-79, CWE-80 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| starcitizenwiki/embedvideo | <= 4.0.0 | 4.1.0 |

## What to do

Update starcitizenwiki/embedvideo to 4.1.0 or later: composer update starcitizenwiki/embedvideo.

Check which version you run with `composer show starcitizenwiki/embedvideo`, and every affected package with `composer audit`.

## About this advisory

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.



## Links

- [GHSA-v65j-hff3-753c on GitHub](https://github.com/advisories/GHSA-v65j-hff3-753c)
- [CVE-2026-57440 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-57440)
- [All Composer security advisories](https://buzzphp.com/security)
