CVE-2025-61642 Stored XSS through system messages provided to CodexHtmlForms

None 0.0 Published Updated

Stored XSS in MediaWiki allows attackers to inject scripts via system messages, potentially leading to code execution or account takeover.

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-2025-61642?

CVE-2025-61642 is a cross-site scripting vulnerability in Mediawiki Mediawiki, published on 2 Feb 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Wikimedia Foundation MediaWiki. This vulnerability is associated with program files includes/htmlform/CodexHTMLForm.Php, includes/htmlform/fields/HTMLButtonField.Php.

This issue affects MediaWiki: from * before 1.39.14, 1.43.4, 1.44.1.

Weakness: CWE-79

Which versions are affected by CVE-2025-61642?

It affects 1 product.

Products include Mediawiki Mediawiki.

How do I fix CVE-2025-61642?

Upgrade to a fixed version.

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-61642 being exploited?

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

All Mediawiki Mediawiki vulnerabilities

Sources

Also known as DEBIAN-CVE-2025-61642, GHSA-cc7r-67vc-28jh, UBUNTU-CVE-2025-61642.

Is CVE-2025-61642 in your software?

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

Check your SBOMs for free