CVE-2025-59839
PHP vulnerability analysis and mitigation

Overview

The EmbedVideo extension for MediaWiki contains a stored Cross-Site Scripting (XSS) vulnerability identified as CVE-2025-59839. The vulnerability was discovered and disclosed on September 24, 2025, affecting versions 4.0.0 and earlier of the extension. The vulnerability allows attackers to inject arbitrary HTML attributes into the DOM through wikitext, potentially leading to JavaScript code execution (GitHub Advisory).

Technical details

The vulnerability stems from the extension's improper handling of data attributes, specifically the unreserved 'data-iframeconfig' attribute that can be set via wikitext. The issue occurs in the iframe attribute population process where values from unreserved data attributes are directly used without proper sanitization. This allows attackers to execute JavaScript through attributes like 'onload' or 'onmouseenter'. The vulnerability has been assigned a CVSS v3.1 score of 8.6 (High), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L (GitHub Advisory).

Impact

The vulnerability allows attackers to insert arbitrary HTML into the DOM, enabling JavaScript code execution by any user. This can lead to high confidentiality impact and low integrity and availability impacts. The attack requires no special privileges or user interaction, making it particularly dangerous in a wiki environment where multiple users can edit content (GitHub Advisory).

Mitigation and workarounds

As of the disclosure date, no patched versions are available. The vulnerability was addressed in a commit that changes the data attribute from 'data-iframeconfig' to 'data-mw-iframeconfig' to use MediaWiki's reserved prefix, but this fix has not been released in a new version (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59839HIGH8.6
  • PHPPHP
  • starcitizenwiki/embedvideo
NoNoSep 25, 2025
CVE-2025-59713HIGH8.1
  • PHPPHP
  • snipe/snipe-it
NoYesSep 19, 2025
CVE-2025-57407MEDIUM5.4
  • PHPPHP
  • gp247/core
NoYesSep 23, 2025
CVE-2025-59712MEDIUM5.4
  • PHPPHP
  • snipe/snipe-it
NoYesSep 19, 2025
CVE-2025-10909MEDIUM4.8
  • PHPPHP
  • novosga/novosga
NoNoSep 24, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management