mediawiki/maps has stored XSS through the overlays parameter in the display_map parser function
High severity. Published 2 July 2026. Update mediawiki/maps to 12.1.3 or later: composer update mediawiki/maps.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| mediawiki/maps (opens in a new tab) | < 12.1.3 | 12.1.3 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show mediawiki/maps
composer auditAdvisory details
| Severity | HighCVSS 8.6 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-52854 (opens in a new tab) |
| GHSA | GHSA-4h7g-5542-v3fc (opens in a new tab) |
| Weakness | CWE-79, CWE-80 |
What the advisory says
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. Leaflet then inserts them as HTML: https://github.com/ProfessionalWiki/Maps/blob/ca5139fabd75f3c34f47ea3fd161306506b053bc/resources/lib/leaflet/leaflet.jsL5243
PoC Preview the following wikitext, using the default configuration options of the extension:
Impact Stored XSS can be performed by any user with the edit permission.
Source: GHSA-4h7g-5542-v3fc (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .