CVE-2020-10960: MediaWiki/core - Arbitrary CSS Selector Event Handler Vulnerability

mediawiki/core Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Moderate
5.3

CVE-2020-10960: MediaWiki makeCollapsible allows applying event handler to any CSS selector. Affects mediawiki/core across 3 version ranges.

>= 1.31.0, < 1.31.7 >= 1.33.0, < 1.33.3 >= 1.34.0, < 1.34.1

Fixed in 1.31.7, 1.33.3 or 1.34.1, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2020-10960 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

MediaWiki/core is an open-source software package that powers Wikipedia and other Wikimedia Foundation websites. It provides a platform for collaborative editing and managing of content. The package allows users to add CSS classes to DOM nodes via HTML content within a MediaWiki page. This feature enables customization of the user interface by showing or hiding specific content based on the applied CSS classes.

Vulnerability Detail

The vulnerability (CVE-2020-10960) in MediaWiki/core versions before 1.34.1 allows users to apply an event handler to any CSS selector. This means that arbitrary DOM nodes can have event handlers attached to them, potentially leading to unintended behavior or security issues. Although there is no known way to exploit this vulnerability for cross-site scripting (XSS), it can still have implications on the functionality and user experience of the application.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 1.31.0, < 1.31.7 1.31.7
    composer require mediawiki/core:1.31.7
  • >= 1.33.0, < 1.33.3 1.33.3
    composer require mediawiki/core:1.33.3
  • >= 1.34.0, < 1.34.1 1.34.1
    composer require mediawiki/core:1.34.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The vulnerability in MediaWiki/core versions before 1.34.1 allows users to apply event handlers to arbitrary CSS selectors, potentially leading to unintended behavior or security issues. It is recommended to update to the latest version to mitigate the risk. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for mediawiki/core →

Share this vulnerability

FAQ

MediaWiki/core is an open-source software package used for collaborative editing and managing of content, powering Wikipedia and other Wikimedia Foundation websites.

The vulnerability allows users to apply event handlers to arbitrary CSS selectors, potentially leading to unintended behavior or security issues in the application.

No, there is no known way to exploit this vulnerability for cross-site scripting (XSS).

To fix this vulnerability, update MediaWiki/core to version 1.34.1 or later.

No specific workaround has been mentioned for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for mediawiki/core.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 1.31.0, < 1.31.7 1.31.7
    composer require mediawiki/core:1.31.7
  • >= 1.33.0, < 1.33.3 1.33.3
    composer require mediawiki/core:1.33.3
  • >= 1.34.0, < 1.34.1 1.34.1
    composer require mediawiki/core:1.34.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback