CVE-2022-21710 Cross-site Scripting in ShortDescription extension
An attacker can inject malicious scripts via wikitext in the ShortDescription extension, potentially executing code in victim browsers.
- 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
- None listed
What is CVE-2022-21710?
CVE-2022-21710 is a medium-severity cross-site scripting vulnerability in StarCitizenTools mediawiki-extensions-ShortDescription, published on 24 Jan 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
ShortDescription is a MediaWiki extension that provides local short description support. A cross-site scripting (XSS) vulnerability exists in versions prior to 2.3.4. On a wiki that has the ShortDescription enabled, XSS can be triggered on any page or the page with the action=info parameter, which displays the shortdesc property. This is achieved using the wikitext `{{SHORTDESC:<img src=x onerror=alert()>}}`. This issue has a patch in version 2.3.4.
Weakness: CWE-79
Which versions are affected by CVE-2022-21710?
It affects 1 product.
Products include Mediawiki Shortdescription.
How do I fix CVE-2022-21710?
No fix has been published for CVE-2022-21710 yet. Limit exposure of the affected software until one is available.
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-21710 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-21710 exists.
Sources
Also known as GHSA-mgcp-qw2r-6832.