CVE-2026-52854: mediawiki/maps has stored XSS through the overlays parameter in the display_map parser function
Summary Stored XSS through wikitext can be performed by inserting malicious HTML into the overlays parameter of the displaymap parser function when using the leaflet service. Details The maps extension doesn't escape overlay names before passing them to leaflet.
Published Jul 2, 2026
Affected packages
mediawiki/maps
- Ecosystem
- Composer (PHP)
- Affected
- < 12.1.3
- Fixed in
- 12.1.3
- Check
composer show mediawiki/maps
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
Stored XSS through wikitext can be performed by inserting malicious HTML into the overlays parameter of the display_map parser function when using the leaflet service.
Details
The maps extension doesn't escape overlay names before passing them to leaflet. Leaflet then inserts them as HTML: https://github.com/ProfessionalWiki/Maps/blob/ca5139fabd75f3c34f47ea3fd161306506b053bc/resources/lib/leaflet/leaflet.js#L5243
PoC
Preview the following wikitext, using the default configuration options of the extension:
{{#display_map:0,0|service=leaflet|overlays=OpenTopoMap.}}Impact
Stored XSS can be performed by any user with the edit permission.
Credited to SomeMWDev, NGoedix, h1david96, archyxsec.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
