Advisory

GHSA-h8qx-mj6v-2934

Also known as: BIT-mediawiki-2020-25828, CVE-2020-25828

Summary

MediaWiki Cross-site Scripting (XSS) vulnerability

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.)

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-24 17:29 UTC
Modified
2024-05-19 02:23 UTC

Affected packages and fixes

mediawiki/core

Packagist · All systems

Affected

  • introduced 1.31.0, fixed 1.31.9 (ecosystem)

Fixed versions

1.31.9

Fix

The export has no generic command for this ecosystem.

mediawiki/core

Packagist · All systems

Affected

  • introduced 1.32.0, fixed 1.34.3 (ecosystem)

Fixed versions

1.34.3

Fix

The export has no generic command for this ecosystem.

mediawiki/core

Packagist · All systems

Affected

  • introduced 1.35.0-rc.0, fixed 1.35.0 (ecosystem)

Fixed versions

1.35.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences