CVE-2025-7362 MsUpload: Stored Cross-Site Scripting (XSS) via unsanitized msu-continue system message

Medium 5.4 Published Updated

Attackers can inject malicious scripts via unsanitized upload messages, potentially hijacking user sessions in MediaWiki installations using the MsUpload extension.

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
None listed

What is CVE-2025-7362?

CVE-2025-7362 is a medium-severity cross-site scripting vulnerability in Wikimedia Foundation Mediawiki - MsUpload extension, published on 8 Jul 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

The MsUpload extension for MediaWiki is vulnerable to stored XSS via the msu-continue system message, which is inserted into the DOM without proper sanitization. The vulnerability occurs in the file upload UI when the same filename is uploaded twice.

This issue affects Mediawiki - MsUpload extension: from 1.39.X before 1.39.13, from 1.42.X before 1.42.7, from 1.43.X before 1.43.2.

Weakness: CWE-79

Which versions are affected by CVE-2025-7362?

How do I fix CVE-2025-7362?

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

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

Sources

Also known as GHSA-pqmg-6grf-rg8c.

Is CVE-2025-7362 in your software?

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

Check your SBOMs for free