CVE-2023-37251 Cross-site scripting in n/a
Attackers can execute arbitrary JavaScript via the googleanalyticstrackurl parser function in the GoogleAnalyticsMetrics extension for MediaWiki.
- 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-2023-37251?
CVE-2023-37251 is a medium-severity cross-site scripting vulnerability in Mediawiki Mediawiki, published on 29 Jun 2023. 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 the GoogleAnalyticsMetrics extension for MediaWiki through 1.39.3. The googleanalyticstrackurl parser function does not properly escape JavaScript in the onclick handler and does not prevent use of javascript: URLs.
Weakness: CWE-79
Which versions are affected by CVE-2023-37251?
1 open source package ship an affected version, including mediawiki. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mediawiki Bitnami | All versions | 1.39.4 |
Products include Mediawiki Mediawiki.
How do I fix CVE-2023-37251?
Upgrade mediawiki to 1.39.4 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-2023-37251 being exploited?
There is no known exploitation of CVE-2023-37251 in the wild and no public exploit code.
Other vulnerabilities in Mediawiki Mediawiki
Sources
Also known as BIT-mediawiki-2023-37251, GHSA-9f9w-jm83-5247.