GitHub Advisoryadvisory · Packagist
GHSA-v65j-hff3-753c Mediawiki EmbedVideo Extension has stored XSS via malformed src url with $wgEmbedVideoRequireConsent disabled
HIGH
Official page ↗
- Aliases
- CVE-2026-57440
- Ecosystem
- Packagist
- Packages
- starcitizenwiki/embedvideo
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-79, CWE-80
- Reviewed
- 2026-09-25
Affected packages
• Packagist starcitizenwiki/embedvideo: < 4.1.0 → fixed in 4.1.0
Description
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.
```
```
Impact
When $wgEmbedVideoRequireConsent = false, 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.
Related
Alias · CVE (1)
- CVE-2026-57440 The EmbedVideo Extension is a MediaWiki extension which adds a parser function called #ev and various parser tags for embedding video clips… vulnerability
References
- https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/security/advisories/GHSA-v65j-hff3-753c web
- https://nvd.nist.gov/vuln/detail/CVE-2026-57440 advisory
- https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/commit/370156335b325bb81d14d89edf0a1f2643d50a84 web
- https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo package