VDB
Sign up
MEDIUM6.1

GHSA-h8qx-mj6v-2934

MediaWiki Cross-site Scripting (XSS) vulnerability

Quick fix

GHSA-h8qx-mj6v-2934 — mediawiki/core: upgrade to the fixed version with the command below.

composer require mediawiki/core:^1.31.9

Details

An issue was discovered in MediaWiki before 1.31.9 and 1.32.x through 1.34.x before 1.34.3. The non-jqueryMsg version of mw.message().parse() doesn't escape HTML. This affects both message contents (which are generally safe) and the parameters (which can be based on user input). (When jqueryMsg is loaded, it correctly accepts only whitelisted tags in message contents, and escapes all parameters. Situations with an unloaded jqueryMsg are rare in practice, but can for example occur for Special:SpecialPages on a wiki with no extensions installed.)

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/mediawiki/core
Introduced in: 1.31.0Fixed in: 1.31.9
Fixcomposer require mediawiki/core:^1.31.9
Packagist/mediawiki/core
Introduced in: 1.32.0Fixed in: 1.34.3
Fixcomposer require mediawiki/core:^1.34.3
Packagist/mediawiki/core
Introduced in: 1.35.0-rc.0Fixed in: 1.35.0
Fixcomposer require mediawiki/core:^1.35.0

References