CVE-2019-12471: MediaWiki Cross-site Scripting (XSS)
6.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.54515%
CWE
Published
5/24/2022
Updated
5/15/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/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.27.0, < 1.27.6 | 1.27.6 |
mediawiki/core | composer | >= 1.30.0, < 1.30.2 | 1.30.2 |
mediawiki/core | composer | >= 1.31.0, < 1.31.2 | 1.31.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from MediaWiki's handling of user subpages (e.g., User:NonExistent/script.js) through the raw action. The unpatched RawAction::execute function served these resources without checking if the user account actually existed. This allowed attackers to 1) create pages under non-existent user namespaces, 2) subsequently register those usernames, and 3) execute arbitrary code via imported scripts. The security patch added user existence checks specifically for JS/CSS/JSON subpages, which would have been implemented in the RawAction handler.