ZeroHour

CVE-2026-55692

niche

Stored Cross-Site Scripting in MediaWiki EmbedVideo Extension before 4.1.0

CVSS 3.1
7.5 high
EPSS
Published
()
Modified
AI analysis

The EmbedVideo extension for MediaWiki contains a stored cross-site scripting flaw (CWE-79) in versions prior to 4.1.0, where includes/EmbedService/EmbedHtmlFormatter.php writes service-supplied JSON into the data-mw-iframeconfig attribute without safely escaping single quotes. An attacker who can edit a wiki page can supply a crafted archiveorg identifier or a crafted Wistia or SharePoint URL that terminates the attribute and injects event-handler attributes into the rendered figure element. When another user visits the page, the injected JavaScript executes in the wiki's origin, allowing theft of session cookies or performance of actions as the victim. The flaw requires the default $wgEmbedVideoRequireConsent setting to be enabled and affects any wiki exposing editing to untrusted or semi-trusted accounts; it is fixed in 4.1.0. No public proof of concept is known and the issue is not listed in CISA's KEV, so there is no evidence of in-the-wild exploitation.

What to do: Upgrade the EmbedVideo extension to version 4.1.0 or later immediately. If an immediate upgrade is not possible, consider disabling the affected service validators (archiveorg, Wistia, SharePoint) or evaluating whether turning off $wgEmbedVideoRequireConsent sidesteps the vulnerable data-mw-iframeconfig code path. Review recent page histories and edits for archiveorg identifiers or Wistia/SharePoint URLs containing single quotes or unusual characters, and check access logs for wiki pages that rendered suspicious embeds.

Affected
MediaWiki EmbedVideo extension< 4.1.0 (all versions prior to 4.1.0)
Estimated exposure
niche≈ hundreds to low thousands of public MediaWiki wikis, plus an unknown number of private installs — EmbedVideo is a popular third-party MediaWiki extension tracked by public wiki registries such as Wikiapiary, which enumerate on the order of hundreds to a few thousand live public wikis using it; MediaWiki itself powers far more sites but…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

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 the default $wgEmbedVideoRequireConsent configuration enabled, includes/EmbedService/EmbedHtmlFormatter.php places JSON returned through includes/EmbedService/AbstractEmbedService.php into the data-mw-iframeconfig attribute without safely escaping single quotes. Attacker-controlled archiveorg identifiers and wistia or sharepoint URLs accepted by the affected service validators can cause getUrl() output to terminate the attribute and inject event-handler attributes into the generated figure element. A user able to edit a wiki page can store JavaScript that executes in the wiki origin when visitors render the page. This issue is fixed in version 4.1.0.

Weakness
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

In the news

No ingested article mentions this CVE yet.