CVE-2020-10960: MediaWiki makeCollapsible allows applying event handler to any CSS selector
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.52082%
CWE
Published
5/24/2022
Updated
4/1/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| mediawiki/core | composer | >= 1.31.0, < 1.31.7 | 1.31.7 |
| mediawiki/core | composer | >= 1.33.0, < 1.33.3 | 1.33.3 |
| mediawiki/core | composer | >= 1.34.0, < 1.34.1 | 1.34.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability occurs in the jquery.makeCollapsible implementation where user-provided CSS selectors (via 'id' attributes) were directly used to attach event handlers. The Phabricator task T246602 shows the fix involved adding $.escapeSelector to sanitize inputs, confirming the function's improper handling of selectors. The CWE-74 (Injection) and CWE-116 (Improper Encoding) mappings align with unescaped selector usage in DOM manipulation functions.