GitHub Advisoryadvisory · Packagist

GHSA-v65j-hff3-753c Mediawiki EmbedVideo Extension has stored XSS via malformed src url with $wgEmbedVideoRequireConsent disabled

HIGH Published 2026-09-25 Modified 2026-09-25 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

Weakness · CWE (2)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness
  • CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page weakness

References