CVE-2020-27957 Cross-site scripting in n/a
Attackers can inject malicious scripts via manipulated game titles in the RandomGameUnit extension, leading to stored XSS attacks on MediaWiki sites.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-27957?
CVE-2020-27957 is a medium-severity cross-site scripting vulnerability in Mediawiki Mediawiki, published on 28 Oct 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
The RandomGameUnit extension for MediaWiki through 1.35 was not properly escaping various title-related data. When certain varieties of games were created within MediaWiki, their names or titles could be manipulated to generate stored XSS within the RandomGameUnit extension.
Weakness: CWE-79
Which versions are affected by CVE-2020-27957?
1 open source package ship an affected version, including mediawiki. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mediawiki Bitnami | All versions | 1.35.1 |
Products include Mediawiki Mediawiki.
How do I fix CVE-2020-27957?
Upgrade mediawiki to 1.35.1 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2020-27957 being exploited?
There is no known exploitation of CVE-2020-27957 in the wild and no public exploit code.
Other vulnerabilities in Mediawiki Mediawiki
Sources
Also known as BIT-mediawiki-2020-27957, GHSA-rpm7-qhmh-9jvh.