High · 7.5 PHP packages GHSA-v65j-hff3-753c CVE-2026-57440 PKSA-1f7b-5f9b-ggt9
Stored XSS in MediaWiki EmbedVideo Extension (CVE-2026-57440)
The MediaWiki EmbedVideo extension before version 4.1.0 fails to sanitize video URLs passed into an iframe src attribute when the $wgEmbedVideoRequireConsent setting is disabled, allowing HTML/JavaScript injection via a malformed URL or video ID.
By PatchBriefing ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A cross-site scripting (XSS) vulnerability has been disclosed in EmbedVideo, a MediaWiki extension that provides the #ev parser function and related parser tags for embedding videos from external video-sharing services into wiki pages. The issue is tracked as CVE-2026-57440 and is relevant to wiki administrators who have disabled the extension's built-in embed consent requirement.
What happened
The EmbedVideo extension inserts video URLs directly into the src attribute of an HTML iframe element. When the configuration setting $wgEmbedVideoRequireConsent is disabled (this is not the default setting), the extension does not sanitize these URLs before inserting them. A malformed URL or video ID can be crafted to break out of the double-quoted src attribute, allowing an attacker to inject arbitrary HTML or JavaScript into the rendered wiki page.
Technical cause
The vulnerability is classified as CWE-79, Improper Neutralization of Input During Web Page Generation (Cross-site Scripting). The root cause is insufficient input sanitization of video URLs/IDs before they are embedded into an iframe src attribute. Because the attribute is delimited with double quotes, an attacker-supplied value containing a double quote can terminate the attribute early and introduce new HTML markup or script content.
Why it matters
Cross-site scripting in a wiki extension can allow an attacker to execute arbitrary JavaScript in the browsing context of other users viewing the affected page, potentially leading to session hijacking, credential theft, or further compromise of the wiki, depending on how the injected content is used. The vulnerability does not require authentication or user interaction beyond viewing the affected page, which increases its practical risk in environments where the vulnerable configuration is in use.
Who is affected
This issue affects installations of the starcitizenwiki/embedvideo MediaWiki extension where the configuration setting $wgEmbedVideoRequireConsent has been explicitly disabled. The advisory notes this is not the default configuration, so wikis running with default settings are not affected by this specific issue.
Affected versions
Versions of starcitizenwiki/embedvideo from version 0 up to and including version 4.0.0 are affected.
Fixes and mitigation
Version 4.1.0 of starcitizenwiki/embedvideo contains a patch for this issue. Administrators are advised to upgrade to version 4.1.0 or later. As an additional mitigation, administrators who require the $wgEmbedVideoRequireConsent setting disabled should assess their exposure until the upgrade is applied.
Recommended action
Upgrade the EmbedVideo extension to version 4.1.0 or later as soon as practical. Review whether $wgEmbedVideoRequireConsent is disabled in your configuration, and if so, prioritize the upgrade to reduce the window of exposure.
PatchBriefing score
7.5 / 10 · High
Official CVSS: 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS 0.0043 (29 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- starcitizenwiki/embedvideo <= 4.0.0
- vulnerable
- starcitizenwiki/embedvideo <=4.0.0
- vulnerable
- ≥ 4.1.0
- patched
Reported fixes
Version 4.1.0 of starcitizenwiki/embedvideo contains a patch for this issue. Administrators are advised to upgrade to version 4.1.0 or later. As an additional mitigation, administrators who require the $wgEmbedVideoRequireConsent setting disabled should assess their exposure until the upgrade is applied.
How this was built
3 source records were collected, matched and used to prepare the report above.
-
GitHub Advisory Database database
-
Packagist Security Advisories registry
-
NVD (NIST) database
Revision history
- Generated
- Published
- Generated