CVE-2021-45472 Cross-site scripting in n/a
Attackers can execute arbitrary JavaScript via crafted external identifier URLs in MediaWiki Wikibase, potentially compromising user sessions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-45472?
CVE-2021-45472 is a medium-severity cross-site scripting vulnerability in Fedoraproject Fedora, published on 24 Dec 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
In MediaWiki through 1.37, XSS can occur in Wikibase because an external identifier property can have a URL format that includes a $1 formatter substitution marker, and the javascript: URL scheme (among others) can be used.
Weakness: CWE-79
Which versions are affected by CVE-2021-45472?
1 open source package ship an affected version, including mediawiki. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
mediawiki Bitnami | All versions | 1.37.1 |
Products include Fedoraproject Fedora, Mediawiki Mediawiki.
How do I fix CVE-2021-45472?
Upgrade mediawiki to 1.37.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-2021-45472 being exploited?
There is no known exploitation of CVE-2021-45472 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as BIT-mediawiki-2021-45472, GHSA-6j65-7rx3-56x5, UBUNTU-CVE-2021-45472.