MediaWiki AdvancedSearch
CVE-2025-62662
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate or gain content-submission access to wiki
-
DeliveryStore crafted script payload in AdvancedSearch field
-
ExploitVictim loads affected search page
-
ExecutionStored script executes in victim browser
-
ImpactHijack session or act as victim
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 AdvancedSearch extension to be installed and enabled on the MediaWiki instance, and the attacker must be able to persist attacker-controlled input into a field that the extension renders back into a web page (stored XSS). Triggering requires a victim user to subsequently load the affected search view, at which point the payload executes in that victim's authenticated browser context. Limiting factors: the payload only fires when a victim visits the affected page, impact is scoped to the victim's MediaWiki session/origin rather than the server, and the ability to store content is typically gated by the wiki's editing/permission configuration - despite the published vector's PR:N/UI:N, both an injection step and victim interaction are realistically needed. |
| Impact | This is a stored Cross-Site Scripting flaw (CWE-79) in the Wikimedia MediaWiki AdvancedSearch extension, rated 6.9 (Medium) under CVSS 4.0. Signals are consistent and point to a moderate, not urgent, priority: EPSS is 0.45% (37th percentile), indicating low modeled near-term exploitation probability; it is NOT on CISA KEV, so there is no public active-exploitation record, and no public exploit code is referenced - exploitation status is therefore 'no public exploit identified at time of analysis.' The provided CVSS 4.0 vector claims PR:N/UI:N (unauthenticated, no interaction), but this conflicts with the nature of a STORED XSS: storing a payload in a wiki typically requires some edit/save capability, and triggering it requires a victim to view the affected page - verify PR and UI with the vendor, as the published vector likely overstates ease of exploitation. No SSVC decision data was provided. Net: a legitimate, patchable web-app defect worth remediating in affected MediaWiki deployments, but the combination of Medium severity, low EPSS, no KEV, and no POC means it is not a drop-everything issue. |
| Exploit ScenarioDerived | An attacker who can submit or store content processed by the AdvancedSearch extension injects a malicious script payload into a search-related field that is later rendered without proper neutralization. When another user - potentially a privileged administrator - loads the affected search interface, the stored script executes in their browser under the wiki's origin, enabling session/credential theft or actions on their behalf. No public proof-of-concept exploit was identified in the provided data. |
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 Wikimedia MediaWiki AdvancedSearch extension (all versions built from master before 1.39) lets an attacker who can persist crafted input into a field that the extension renders back into a page execute arbitrary JavaScript in the browser session of any user who later loads the affected search view. The published CVSS 4.0 score of 6.9 (Medium) uses a PR:N/UI:N vector suggesting no privileges or victim interaction, but the independent assessment (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N) and MediaWiki's content-permission model indicate the write/injection step realistically requires an account permitted to store the malicious content (PR:L) followed by a victim visiting the poisoned page. Impact is confined to the victim's MediaWiki origin and session rather than the server; no public exploit code has been identified at time of analysis, and EPSS is low at 0.45% (37th percentile).
RemediationAI
Upgrade the MediaWiki AdvancedSearch extension to the fixed code referenced by the upstream Gerrit change (I91bba2b570643ef74e6c210e7250e05cd2aa388e) or to the extension version shipped with MediaWiki 1.39 or later; MediaWiki administrators should also review the Phabricator task T402146, which tracks the report and its resolution, and apply the full 1.39-or-later extension bundle rather than cherry-picking. Because the fix is currently referenced by a Gerrit commit rather than an independently confirmed tagged release, verify after upgrading that the previously vulnerable render path no longer emits unescaped stored values. Where upgrading is not immediately possible, compensating controls include disabling the AdvancedSearch extension entirely (trade-off: loss of namespace filters and profile-based search features), restricting write access to any persisted search-profile or filter fields so only trusted users can store values that are later rendered (trade-off: reduced flexibility for editors), auditing and purging existing stored payloads from affected pages and profile records, and deploying a restrictive Content-Security-Policy on the wiki to blunt script execution (trade-off: can break legitimate wiki gadgets and inline scripts).
Affected ProductsAI
The MediaWiki AdvancedSearch extension is affected in versions built from master before 1.39, meaning installations running a pre-1.39 MediaWiki release with the AdvancedSearch extension installed and enabled (typically Wikimedia-style wikis and third-party wikis that ship the extension). Intermediate and master builds preceding the 1.39 branch are also in scope, so any deployment tracking extension master before the fix commit is exposed. The primary upstream references are the Gerrit fix change at https://gerrit.wikimedia.org/r/q/I91bba2b570643ef74e6c210e7250e05cd2aa388e and the Phabricator tracking task at https://phabricator.wikimedia.org/T402146; the CVE record does not include CPE identifiers, so affected instances should be enumerated by checking the installed extension version and the MediaWiki core release it is bundled with.
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 root cause is CWE-79, improper neutralization of user-controllable input during web page generation, implemented here as a persistent (stored) XSS. The Wikimedia AdvancedSearch extension is a PHP/JavaScript MediaWiki extension that augments the on-wiki search experience, adding profile-based search presets and namespace/field filters whose values are persisted server-side and re-rendered into the search interface for subsequent users. Because the extension failed to escape one or more of those rendered values, data saved through the extension can be emitted into HTML unencoded, so a stored script executes in the origin of every user who loads the affected view. This is client-side execution inside the victim's authenticated MediaWiki session and same-origin context (scope change to other users' browsers, hence the S:C rating in the independent assessment), not server-side code execution and not a compromise of the MediaWiki host. The vulnerability was reported and fixed through Wikimedia's Gerrit/Phabricator workflow (Gerrit change I91bba2b570643ef74e6c210e7250e05cd2aa388e and Phabricator task T402146), which are the authoritative upstream artifacts; no CPE strings were supplied with the CVE data, so exact affected builds must be derived from the MediaWiki release the extension is bundled with.
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-submission rights (PR:L) and executes in a separate victim browser authority (S:C) with limited confidentiality/integrity impact and no availability loss.
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 - AdvancedSearch Extension allows Stored XSS.This issue affects Mediawiki - AdvancedSearch 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