MediaWiki ImageRating
CVE-2025-62664
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess MediaWiki wiki with ImageRating enabled
-
DeliverySubmit rating with crafted script payload
-
ExploitPayload stored unsanitized in page
-
ExecutionVictim views affected image page
-
ImpactScript executes in victim browser session
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 | Requires a MediaWiki instance with the optional ImageRating extension installed and enabled (not present in default/core MediaWiki) at a version from master before 1.39. An attacker must be able to submit an image rating whose content is stored, and realization of the attack requires a victim to subsequently view the page containing the injected payload. The non-default extension requirement and the need for victim page interaction are the primary factors limiting real-world exploitation despite the network-reachable vector. |
| Impact | This is a stored (persistent) XSS flaw (CWE-79) in the MediaWiki ImageRating extension, rated CVSS 4.0 6.9 (Medium). The vendor-supplied CVSS 4.0 vector claims AV:N/AC:L/PR:N/UI:N with low impact across confidentiality, integrity, and availability on both vulnerable and subsequent systems. Exploitation signals are modest and mutually consistent: EPSS is 0.45% (37th percentile), the issue is NOT on the CISA KEV list, and no public exploit code was identified in the provided data - so this is 'no public exploit identified at time of analysis', not active exploitation. The CVSS vector's PR:N/UI:N is optimistic for a stored XSS primitive: storing a payload in a rating/comment field generally requires at least the ability to submit content (often an authenticated account), and realization typically requires a victim to view the poisoned page - so the real-world barrier is slightly higher than the vector implies. Net assessment: a legitimate but NOT high-priority issue - medium severity, low exploitation probability, niche affected component, and a patch already available via Wikimedia Gerrit. Treat as routine patch-cycle remediation rather than emergency response. |
| Exploit ScenarioDerived | An attacker with the ability to submit an image rating injects a malicious script payload into a rating/comment field that the ImageRating extension stores and later renders without proper neutralization. When another user - potentially an administrator - views the affected image page, the script executes in their browser session, enabling session/cookie theft or actions performed as the victim. No public exploit code was 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 in the MediaWiki ImageRating extension allows an attacker who can submit image ratings to persist script content that executes when a victim views the affected page. The flaw affects MediaWiki installations that have the optional ImageRating extension installed and enabled at versions from master before 1.39; it is not present in default/core MediaWiki. The assessed CVSS:3.1 vector is AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N (NVD CVSS 4.0 base 6.9 Medium), with low EPSS (0.45%), no CISA KEV listing, and no public exploit identified at time of analysis.
RemediationAI
Primary remediation: apply the upstream Wikimedia Gerrit change Ie42bba0d80bace319cf88d71233db1f598ac613b (referenced in the NVD entry) and/or update the ImageRating extension to a release at or after 1.39 where available; Phabricator task T402002 provides vendor tracking. Patch status: upstream fix available (Gerrit change/commit); a released patched version is not independently confirmed from the supplied data. If patching is not possible, the most direct compensating control is to disable the ImageRating extension entirely, which removes the vulnerable rating feature but eliminates the attack surface. If the feature must remain, restrict rating submissions to trusted users/editors to reduce stored-payload injection opportunities (side effect: limits normal user participation), enforce output encoding/sanitization for stored rating fields in the extension code, and apply a restrictive Content Security Policy to reduce script execution impact (side effect: CSP can break legitimate inline scripts or extension UI). Review and remove any existing stored malicious rating content after applying fixes.
Affected ProductsAI
MediaWiki installations using the optional ImageRating extension, from master before version 1.39. The extension is not part of default MediaWiki core, so default/core installations are not affected unless they have added and enabled ImageRating. No CPE identifiers were included in the supplied intelligence. Vendor maintainers track the issue via Wikimedia Gerrit change Ie42bba0d80bace319cf88d71233db1f598ac613b and Phabricator task T402002.
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 issue is CWE-79, improper neutralization of input during web page generation, in the ImageRating extension's stored rating content. The extension is a non-default MediaWiki add-on that lets users rate images; user-supplied rating data is stored and later rendered without sufficient output encoding or sanitization, enabling persistent script injection. The authoritative assessment treats exploitation as requiring a low-privileged actor to submit the rating and a victim to view the page (PR:L/UI:R), with scope change (S:C) and limited confidentiality/integrity impact; this narrows the practical exposure relative to the NVD CVSS 4.0 vector that lists PR:N/UI:N. References point to a Wikimedia Gerrit change (Ie42bba0d80bace319cf88d71233db1f598ac613b) and Phabricator task T402002. No CPE strings were provided.
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
Storing a rating payload needs submit capability (PR:L) and a victim must view the page (UI:R); script runs in the victim's browser context (S:C) with low C/I impact and no availability effect.
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 - ImageRating Extension allows Stored XSS.This issue affects Mediawiki - ImageRating Extension: from master before 1.39.
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