CVE-2020-25812:
MediaWiki Cross-site Scripting (XSS) vulnerability
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.57351%
CWE
Published
5/24/2022
Updated
5/17/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
mediawiki/core | composer | >= 1.34.0, < 1.34.3 | 1.34.3 |
mediawiki/core | composer | >= 1.35.0-rc.0, < 1.35.0 | 1.35.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the 'nsFilters' field in SpecialContributions.php
, where message text was used directly as HTML option keys without escaping. The Gerrit diff shows the fix replaced ->text()
with ->escaped()
and switched to 'options-messages', confirming the original code used unsafe output. The function responsible for building this form element (getForm
) is the root cause.