CVE-2022-34912 Cross-site scripting in n/a
Attackers can execute arbitrary scripts via unescaped HTML entities in usernames on Special:Contributions pages in non-default configurations.
- 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-2022-34912?
CVE-2022-34912 is a medium-severity cross-site scripting vulnerability in Fedoraproject Fedora, published on 2 Jul 2022. 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
An issue was discovered in MediaWiki before 1.37.3 and 1.38.x before 1.38.1. The contributions-title, used on Special:Contributions, is used as page title without escaping. Hence, in a non-default configuration where a username contains HTML entities, it won't be escaped.
Which versions are affected by CVE-2022-34912?
1 open source package ship an affected version, including mediawiki. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
mediawiki Bitnami | All versions | 1.37.3, 1.38.1 |
Products include Fedoraproject Fedora, Mediawiki Mediawiki.
How do I fix CVE-2022-34912?
Upgrade mediawiki to a fixed version for your release line: 1.37.3 or 1.38.1.
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-2022-34912 being exploited?
There is no known exploitation of CVE-2022-34912 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as BIT-mediawiki-2022-34912, DEBIAN-CVE-2022-34912, GHSA-4p85-gw46-324c, UBUNTU-CVE-2022-34912.