# mediawiki/maps has stored XSS through the overlays parameter in the display_map parser function

High severity, published 2026-07-02. Update mediawiki/maps to 12.1.3 or later: composer update mediawiki/maps.

Canonical URL: https://buzzphp.com/security/ghsa-4h7g-5542-v3fc · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.6) |
| Published | 2026-07-02 |
| Updated | 2026-07-02 |
| CVE | [CVE-2026-52854](https://nvd.nist.gov/vuln/detail/CVE-2026-52854) |
| GHSA | [GHSA-4h7g-5542-v3fc](https://github.com/advisories/GHSA-4h7g-5542-v3fc) |
| Weakness | CWE-79, CWE-80 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| mediawiki/maps | < 12.1.3 | 12.1.3 |

## What to do

Update mediawiki/maps to 12.1.3 or later: composer update mediawiki/maps.

Check which version you run with `composer show mediawiki/maps`, and every affected package with `composer audit`.

## About this advisory

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.

## Links

- [GHSA-4h7g-5542-v3fc on GitHub](https://github.com/advisories/GHSA-4h7g-5542-v3fc)
- [CVE-2026-52854 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-52854)
- [All Composer security advisories](https://buzzphp.com/security)
