MediaWiki makeCollapsible allows applying event handler to any CSS selector
The advisory, in context
In MediaWiki before 1.34.1, users can add various Cascading Style Sheets (CSS) classes (which can affect what content is shown or hidden in the user interface) to arbitrary DOM nodes via HTML content within a MediaWiki page. This occurs because jquery.makeCollapsible allows applying an event handler to any Cascading Style Sheets (CSS) selector. There is no known way to exploit this for cross-site scripting (XSS).
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
From 1.31.0 before 1.31.7
Fixed in 1.31.7
7 explicitly affected versions
1.31.0, 1.31.1, 1.31.2, 1.31.3, 1.31.4, 1.31.5, 1.31.6
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "1.31.0"
},
{
"fixed": "1.31.7"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.31.0",
"1.31.1",
"1.31.2",
"1.31.3",
"1.31.4",
"1.31.5",
"1.31.6"
]
}From 1.33.0 before 1.33.3
Fixed in 1.33.3
3 explicitly affected versions
1.33.0, 1.33.1, 1.33.2
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "1.33.0"
},
{
"fixed": "1.33.3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.33.0",
"1.33.1",
"1.33.2"
]
}From 1.34.0 before 1.34.1
Fixed in 1.34.1
1 explicitly affected versions
1.34.0
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "1.34.0"
},
{
"fixed": "1.34.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.34.0"
]
}