CVE-2026-57440: Mediawiki EmbedVideo Extension has stored XSS via malformed src url with $wgEmbedVideoRequireConsent disabled

Published Sep 24, 2026
·
Updated

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. <embedvideo service="archiveorg" id='a" onmouseover="alert(document.domain)" data-x="'></embedvideo>

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.

Other sources

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, 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. Version 4.1.0 contains a patch.

— MITRE

Affected Software

2 affected componentsFixes available
MediaWiki EmbedVideo Extension<4.1.0
composer/starcitizenwiki/embedvideo<=4.0.0
4.1.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/starcitizenwiki/embedvideo to a version that resolves this vulnerability.

    Fixed in 4.1.0
  2. Upgrade

    Upgrade MediaWiki EmbedVideo Extension to a version that resolves this vulnerability.

    Fixed in 4.1.0
  3. Configuration

    Enable $wgEmbedVideoRequireConsent; the vulnerable behavior occurs when this setting is disabled.

    MediaWiki EmbedVideo Extension $wgEmbedVideoRequireConsent = true

Event History

Sep 24, 2026
CVE Published
via MITRE·06:42 PM
Data Sourced
via MITRE·06:42 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness
Sep 25, 2026
Advisory Published
via GitHub·03:03 PM
Data Sourced
via GitHub·03:03 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Is the default configuration affected?

No. The issue requires $wgEmbedVideoRequireConsent to be disabled, which is not the default configuration.

2

What does an attacker need to exploit this?

An attacker needs to be able to supply a malformed video URL or ID to the extension’s embedding functionality. The affected input can break out of the iframe src attribute using double quotes and inject HTML or JavaScript.

3

Which versions should be remediated?

Versions prior to 4.1.0 are affected when consent is disabled. Upgrade to version 4.1.0, which contains the patch.

4

What can be done if an immediate upgrade is not possible?

Enable $wgEmbedVideoRequireConsent and avoid accepting malformed or untrusted video URLs and IDs in EmbedVideo tags until the extension can be updated.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203