ZeroHour

CVE-2026-55691

moderate

Stored XSS in MediaWiki EmbedVideo Extension (versions before 4.1.0)

CVSS 3.1
8.6 high
EPSS
Published
()
Modified
AI analysis

The EmbedVideo extension for MediaWiki contains a stored cross-site scripting vulnerability in EmbedHtmlFormatter::toHtml (includes/EmbedService/EmbedHtmlFormatter.php), where the user-supplied class value is passed unsanitized into an sprintf call building a figure element. A crafted class value containing a quote character can break out of the HTML attribute, allowing arbitrary attributes or markup to be injected into the rendered page. Any user with permission to edit a wiki page can plant JavaScript that executes in the browsers of visitors who view the affected content, enabling session or credential theft and account takeover. All wikis running EmbedVideo prior to version 4.1.0 are affected, with the issue fixed in 4.1.0. No public proof of concept is known and there is no indication of in-the-wild exploitation, though the CVSS 3.1 base score is high at 8.6.

What to do: Upgrade EmbedVideo to version 4.1.0 or later on all affected wikis. Until patched, restrict page-editing rights to trusted users and review recent edits and page histories for suspicious class= values in #ev parser function calls or EmbedVideo parser tags. After upgrading, refresh parser caches so previously stored malicious markup is not served from cache.

Affected
MediaWiki EmbedVideo Extension project EmbedVideo (MediaWiki extension)All versions prior to 4.1.0
Estimated exposure
moderatelikely low thousands of public wikis, plus an unknown number of private installs — EmbedVideo is one of the more commonly installed third-party MediaWiki extensions, but it only applies to self-hosted MediaWiki sites (community registries such as WikiApiary historically tracked it on a few thousand public wikis), so the…

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, EmbedHtmlFormatter::toHtml in includes/EmbedService/EmbedHtmlFormatter.php passes the user-supplied class value directly to sprintf while constructing a figure element. A quote in the class value can terminate the class attribute and inject arbitrary HTML attributes or markup into the rendered page. A user able to edit a wiki page can store JavaScript that executes for visitors who render the affected content. 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:L/A:L

In the news

No ingested article mentions this CVE yet.