CVE-2021-31550 Cross-site scripting in n/a
Attackers can inject XSS payloads via crafted configuration variables in the MediaWiki CommentBox extension, potentially compromising user sessions.
- 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-2021-31550?
CVE-2021-31550 is a medium-severity cross-site scripting vulnerability in Mediawiki Mediawiki, published on 22 Apr 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
An issue was discovered in the CommentBox extension for MediaWiki through 1.35.2. Via crafted configuration variables, a malicious actor could introduce XSS payloads into various layers.
Weakness: CWE-79
Which versions are affected by CVE-2021-31550?
1 open source package ship an affected version, including mediawiki. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mediawiki Bitnami | All versions | 1.35.3 |
Products include Mediawiki Mediawiki.
How do I fix CVE-2021-31550?
Upgrade mediawiki to 1.35.3 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-31550 being exploited?
There is no known exploitation of CVE-2021-31550 in the wild and no public exploit code.
Other vulnerabilities in Mediawiki Mediawiki
Sources
Also known as BIT-mediawiki-2021-31550, GHSA-j4x7-chwp-xcr5.