CVE-2024-40604 Cross-site scripting in n/a

Medium 4.8 Published Updated

Stored XSS in the Nimbus skin for MediaWiki allows attackers to inject scripts via sidebar menu entries, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-40604?

CVE-2024-40604 is a medium-severity cross-site scripting vulnerability in Mediawiki Mediawiki, published on 6 Jul 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

An issue was discovered in the Nimbus skin for MediaWiki through 1.42.1. There is Stored XSS via MediaWiki:Nimbus-sidebar menu and submenu entries.

Weakness: CWE-79

Which versions are affected by CVE-2024-40604?

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

PackageAffectedFixed in
mediawiki BitnamiAll versions1.44.0

Products include Mediawiki Mediawiki.

How do I fix CVE-2024-40604?

Upgrade mediawiki to 1.44.0 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-2024-40604 being exploited?

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

All Mediawiki Mediawiki vulnerabilities

Sources

Also known as BIT-mediawiki-2024-40604, GHSA-7pmp-55wr-jh62.

Is CVE-2024-40604 in your software?

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

Check your SBOMs for free