CVE-2021-41798 Cross-site scripting in n/a

Medium 6.1 Published Updated

Attackers can inject malicious scripts into MediaWiki search results via unescaped month messages, 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-41798?

CVE-2021-41798 is a medium-severity cross-site scripting vulnerability in Fedoraproject Fedora, published on 11 Oct 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

MediaWiki before 1.36.2 allows XSS. Month related MediaWiki messages are not escaped before being used on the Special:Search results page.

Weakness: CWE-79

Which versions are affected by CVE-2021-41798?

1 open source package ship an affected version, including mediawiki. It affects 2 products.

PackageAffectedFixed in
mediawiki BitnamiAll versions1.36.2

Products include Fedoraproject Fedora, Mediawiki Mediawiki.

How do I fix CVE-2021-41798?

Upgrade mediawiki to 1.36.2 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-41798 being exploited?

There is no known exploitation of CVE-2021-41798 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-mediawiki-2021-41798, DEBIAN-CVE-2021-41798, GHSA-6w7p-46mm-c2fc, UBUNTU-CVE-2021-41798.

Is CVE-2021-41798 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free