Advisory

GHSA-4h7g-5542-v3fc

Also known as: CVE-2026-52854

Summary

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

Details

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.<img src=x onerror="alert(1);">}}

Impact
Stored XSS can be performed by any user with the edit permission.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-07-02 17:51 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

mediawiki/maps

Packagist · All systems

Affected

  • introduced 0, fixed 12.1.3 (ecosystem)

Fixed versions

12.1.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences