CVE-2024-47782 Cross-site Scripting (XSS) in Special:WikiDiscover when displaying wiki information in WikiDiscover

High 7.6 Published Updated

Attackers can inject scripts via wiki names or descriptions in WikiDiscover, leading to code execution or account takeover for users viewing the list.

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

What is CVE-2024-47782?

CVE-2024-47782 is a high-severity cross-site scripting vulnerability in miraheze WikiDiscover, published on 7 Oct 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

WikiDiscover is an extension designed for use with a CreateWiki managed farm to display wikis. Special:WikiDiscover is a special page that lists all wikis on the wiki farm. However, the special page does not make any effort to escape the wiki name or description. Therefore, if a wiki sets its name and/or description to an XSS payload, the XSS will execute whenever the wiki is shown on Special:WikiDiscover. This issue has been patched with commit `2ce846dd93` and all users are advised to apply that patch. User unable to upgrade should block access to `Special:WikiDiscover`.

Weakness: CWE-80, CWE-79

Which versions are affected by CVE-2024-47782?

It affects 1 product.

Products include Miraheze Wikidiscover.

How do I fix CVE-2024-47782?

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

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

Sources

Also known as GHSA-wf48-rqx3-39mf.

Is CVE-2024-47782 in your software?

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

Check your SBOMs for free