FlexDiagrams Extension CVE-2025-62670
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain content-submission access to wiki
-
DeliveryInject script payload into FlexDiagrams field
-
ExploitPayload stored unneutralized in page
-
ExecutionVictim renders affected diagram page
-
PersistScript executes in victim browser session
-
ImpactHijack session or perform privileged actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to be able to create or edit FlexDiagrams diagram content on the target MediaWiki wiki so the malicious payload is persistently stored, and requires a second user to subsequently view the affected diagram page for the script to execute. Limiting factors: the affected component is the FlexDiagrams extension (not core MediaWiki), so only wikis with this extension installed are exposed; impact is amplified on wikis that allow open or low-privilege content submission and reduced where editing is restricted to trusted users. The input vector claims no privileges or user interaction, but for stored XSS realistic exploitation still depends on write access to diagram content and a victim rendering it. |
| Impact | This is a stored XSS (CWE-79) in the MediaWiki FlexDiagrams extension carrying a moderate CVSS 4.0 base score of 6.9 (AV:N/AC:L/PR:N/UI:N with Low confidentiality, integrity and availability impact on both vulnerable and subsequent systems). Exploitation signals are weak-to-moderate overall: there is no public exploit identified at time of analysis and the vulnerability is NOT in CISA KEV, while EPSS is low at 0.45% (37th percentile), indicating no observed mass exploitation. The provided CVSS 4.0 vector asserts PR:N and UI:N, but this conflicts with the nature of stored XSS - storing a payload typically requires edit/content-submission rights and a victim must subsequently render the affected diagram page; verify whether FlexDiagrams permits anonymous/unauthenticated content storage before trusting PR:N. No SSVC decision data, patch-fix version, or automatable/technical-impact classification was supplied. Net: this is a genuine but moderate, defense-in-depth-class web flaw rather than an urgent emergency - the low EPSS, absence of KEV/POC, and the niche deployment footprint of this specific extension argue against treating it as a top-tier priority, though stored XSS on a multi-user wiki can enable session or content compromise and should be patched in normal cycles. |
| Exploit ScenarioDerived | An attacker who can submit or edit FlexDiagrams content on a MediaWiki wiki embeds a malicious script payload into a diagram field that is improperly neutralized during page generation. When another user (potentially an administrator) later views the affected diagram page, the stored script executes in their browser session, enabling session hijacking, CSRF-style privileged actions, or content defacement. No public exploit code is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 09, 2026
Stored cross-site scripting (XSS) in the MediaWiki FlexDiagrams extension allows an authenticated attacker with the ability to create or edit diagram content to inject malicious scripts that execute when other users view the affected diagram page. This moderate-severity vulnerability (CVSS 6.9) requires a second user to render the page for exploitation and affects wikis with the extension installed, particularly those running the master branch. No public exploit code has been identified, and the EPSS score is low at 0.45% (37th percentile), but an upstream fix is available via Gerrit change 1179692.
RemediationAI
Apply the upstream fix by updating the FlexDiagrams extension to a version that includes Gerrit change 1179692 (or later). Since no exact version number is provided, administrators should monitor the extension's repository for the patched release. As a workaround, restrict the ability to create or edit FlexDiagrams diagrams to trusted users only, which reduces the attack surface but may limit collaboration. On wikis where the extension is not essential, consider disabling it entirely. For more information, see the Gerrit change at https://gerrit.wikimedia.org/r/c/mediawiki/extensions/FlexDiagrams/+/1179692 and the Phabricator task at https://phabricator.wikimedia.org/T402149.
Affected ProductsAI
The MediaWiki FlexDiagrams extension is affected, specifically the 'master' branch and all prior versions. Any MediaWiki wiki with this extension installed is potentially vulnerable, though the risk is higher on wikis that allow open or low-privilege content submission and reduced where editing is restricted to trusted users. The official Gerrit change 1179692 and Phabricator task T402149 provide details on the affected code and the fix. No specific version numbers are mentioned beyond 'master', so administrators should check their extension version against the commit history.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is a stored cross-site scripting (XSS) issue (CWE-79) in the FlexDiagrams extension for MediaWiki. FlexDiagrams allows users to create and embed diagrams into wiki pages, and due to improper neutralization of user-supplied input during web page generation, malicious script content can be persistently stored in a diagram and later executed in the browsers of other users viewing the page. The root cause is insufficient output encoding when rendering diagram data, a common flaw in web applications that dynamically generate HTML. This issue affects the 'master' branch of the extension, meaning all versions prior to the fix are vulnerable. The independent assessment confirms that exploitation requires the attacker to have write access to diagram content (authenticated, PR:L) and a victim to view the page, despite the input CVSS 4.0 vector claiming no privileges or user interaction.
Know when Mediawiki gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L
Stored XSS needs content-write access (PR:L) and crosses into victims' browser sessions (S:C) with low confidentiality/integrity impact; availability unaffected (A:N).
Primary rating from Vendor (c4f26cc8-17ff-4c99-b5e2-38fc1793eacc).
CVSS VectorVendor: c4f26cc8-17ff-4c99-b5e2-38fc1793eacc
DescriptionCVE.org
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in The Wikimedia Foundation Mediawiki - FlexDiagrams Extension allows Stored XSS.This issue affects Mediawiki - FlexDiagrams Extension: master.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
MediaWiki 1.22.x before 1.22.2, 1.21.x before 1.21.5, and 1.19.x before 1.19.11, when DjVu or PDF file upload support is
The MWOAuthDataStore::lookup_token function in Extension:OAuth for MediaWiki 1.25.x before 1.25.3, 1.24.x before 1.24.4,
An issue was discovered in the CheckUser extension for MediaWiki through 1.39.3. Rated critical severity (CVSS 9.8), thi
The admin API module in the QuizGame extension for MediaWiki through 1.37.2 (before 665e33a68f6fa1167df99c0aa18ed0157cdf
The SemanticDrilldown extension for MediaWiki through 1.37.2 (before e688bdba6434591b5dff689a45e4d53459954773) allows SQ
An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely
An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely
An issue was discovered in the CentralAuth extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this
An issue was discovered in the AbuseFilter extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this
api.php in MediaWiki before 1.27.4, 1.28.x before 1.28.3, and 1.29.x before 1.29.2 has a Reflected File Download vulnera
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in The Wikimedia Foun
An issue was discovered in the FileImporter extension in MediaWiki through 1.36. Rated high severity (CVSS 8.8), this vu
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB