CVE-2026-58028 Pretty-printed API output combined with centralauthtoken allows XSS with certain gadgets

None 0.0 Published Updated

Attackers can execute arbitrary scripts via XSS in MediaWiki API output when using CentralAuth, potentially compromising user accounts.

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

What is CVE-2026-58028?

CVE-2026-58028 is a cross-site scripting vulnerability in Mediawiki Mediawiki, published on 1 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Wikimedia Foundation MediaWiki, Wikimedia Foundation CentralAuth.

This vulnerability is associated with program files includes/Api/ApiFormatBase.Php, includes/Api/ApiHelp.Php, includes/ResourceLoader/Module.Php, includes/Hooks/Handlers/PageDisplayHookHandler.Php, includes/LogFormatter/PermissionChangeLogFormatter.Php.

This issue affects MediaWiki: from * before 1.46.0, 1.45.4, 1.44.6, 1.43.9; CentralAuth: from * before 1.46.0, 1.45.4, 1.44.6, 1.43.9.

Weakness: CWE-79

Which versions are affected by CVE-2026-58028?

It affects 1 product.

Products include Mediawiki Mediawiki.

How do I fix CVE-2026-58028?

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-2026-58028 being exploited?

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

All Mediawiki Mediawiki vulnerabilities

Sources

Also known as DEBIAN-CVE-2026-58028, GHSA-jqc3-4vrw-8965, MINI-cg49-8px4-hv37, MINI-pc67-px3c-xcmc, MINI-rc7q-5vv5-jmv6, UBUNTU-CVE-2026-58028.

Is CVE-2026-58028 in your software?

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

Check your SBOMs for free