CVE-2025-59839
PHP vulnerability analysis and mitigation

Overview

The EmbedVideo Extension, a MediaWiki extension that adds parser functions for embedding video clips from various video sharing services, contains a stored Cross-Site Scripting (XSS) vulnerability (CVE-2025-59839) in versions 4.0.0 and prior. The vulnerability was discovered on September 25, 2025, and allows attackers to add arbitrary attributes to HTML elements through wikitext (GitHub Advisory).

Technical details

The vulnerability stems from the extension's use of unreserved data attributes (data-iframeconfig) that can be set via wikitext. The attributes of an iframe are populated with values from these unreserved data attributes, allowing arbitrary HTML insertion into the DOM. This enables execution of JavaScript through attributes like onload or onmouseenter. The vulnerability has been assigned a CVSS v3.1 base score of 8.6 (High) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L, indicating network attack vector, low complexity, no privileges required, and no user interaction needed (GitHub Advisory).

Impact

The vulnerability allows any user to insert arbitrary HTML into the DOM, enabling JavaScript code execution in the context of other users' browsers. This could lead to theft of sensitive information, session hijacking, and other malicious actions typically associated with XSS attacks (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched via commit 4e075d3, which prevents data attributes starting with data-mw- from being inserted via wikitext. Users should upgrade to versions containing this patch (NVD).

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-13828CRITICAL9
  • PHPPHP
  • mautic/core
NoYesDec 02, 2025
CVE-2025-13827HIGH8.8
  • PHPPHP
  • mautic/grapes-js-builder-bundle
NoYesDec 02, 2025
CVE-2025-66312MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66311MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66310MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 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