CVE-2024-47845 CSS sanitizer used incorrectly, and is easily bypassed

Medium 6.9 Published Updated

Attackers can bypass CSS sanitization to inject malicious code, potentially leading to script execution or security bypasses in MediaWiki installations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-47845?

CVE-2024-47845 is a medium-severity cross-site scripting vulnerability in The Wikimedia Foundation Mediawiki - CSS Extension, published on 5 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Improper Encoding or Escaping of Output vulnerability in The Wikimedia Foundation Mediawiki - CSS Extension allows Code Injection.This issue affects Mediawiki - CSS Extension: from 1.39.X before 1.39.9, from 1.41.X before 1.41.3, from 1.42.X before 1.42.2.

Weakness: CWE-116

Which versions are affected by CVE-2024-47845?

It affects 1 product.

Products include Wikimedia Wikimedia-Extensions-Css.

How do I fix CVE-2024-47845?

No fix has been published for CVE-2024-47845 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-2024-47845 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-47845 exists.

Sources

Also known as GHSA-rxh5-jm9f-fmwj.

Is CVE-2024-47845 in your software?

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

Check your SBOMs for free