{"id":"CVE-2026-52854","aliases":["CVE-2026-52854","GHSA-4h7g-5542-v3fc"],"related":[],"kind":"vulnerability","state":"published","title":"mediawiki/maps: Stored XSS through the overlays parameter in the display_map parser function","summary":"Maps is a MediaWiki extension that enables visualization of geographic data through dynamic embedded maps. Prior to version 12.1.3, the display_map parser function in the Leaflet service accepts attacker-controlled HTML in the overlays parameter, and resources/leaflet/jquery.leaflet.js uses the overlay name as a Leaflet layer-control label without escaping it. A wiki user with the edit permission can store malicious wikitext that causes script execution when another user previews or views the affected map. The script executes in the viewing user's browser session and can access data or perform actions available to that user. This issue is fixed in version 12.1.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Maps is a MediaWiki extension that enables visualization of geographic data through dynamic embedded maps. Prior to version 12.1.3, the display_map parser function in the Leaflet service accepts attacker-controlled HTML in the overlays parameter, and resources/leaflet/jquery.leaflet.js uses the overlay name as a Leaflet layer-control label without escaping it. A wiki user with the edit permission can store malicious wikitext that causes script execution when another user previews or views the affected map. The script executes in the viewing user's browser session and can access data or perform actions available to that user. This issue is fixed in version 12.1.3.","source":"cvelist"},{"lang":"en","text":"### Summary\nStored 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.\n\n### Details\nThe maps extension doesn't escape overlay names before passing them to leaflet.\nLeaflet then inserts them as HTML: https://github.com/ProfessionalWiki/Maps/blob/ca5139fabd75f3c34f47ea3fd161306506b053bc/resources/lib/leaflet/leaflet.js#L5243\n\n### PoC\nPreview the following wikitext, using the default configuration options of the extension:\n```\n{{#display_map:0,0|service=leaflet|overlays=OpenTopoMap.<img src=x onerror=\"alert(1);\">}}\n```\n\n### Impact\nStored XSS can be performed by any user with the `edit` permission.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Maps es una extensión de MediaWiki que permite la visualización de datos geográficos a través de mapas dinámicos incrustados. Antes de la versión 12.1.3, la función de análisis display_map en el servicio Leaflet acepta HTML controlado por el atacante en el parámetro overlays, y resources/leaflet/jquery.leaflet.js utiliza el nombre de la superposición como una etiqueta de control de capa de Leaflet sin escaparlo. Un usuario de wiki con permiso de edición puede almacenar wikitexto malicioso que provoca la ejecución de scripts cuando otro usuario previsualiza o ve el mapa afectado. El script se ejecuta en la sesión del navegador del usuario que lo visualiza y puede acceder a datos o realizar acciones disponibles para ese usuario. Este problema se ha solucionado en la versión 12.1.3.","source":"nvd"}],"published":"2026-07-02T17:51:24.000Z","modified":"2026-10-22T17:09:59.477Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","score":8.6,"rating":"HIGH"}],"cwes":["CWE-79","CWE-80"],"affected":[{"ranges":[{"version":"< 12.1.3","status":"affected"}],"vendor":"ProfessionalWiki","product":"Maps","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"12.1.3"}],"ecosystem":"Packagist","package":"mediawiki/maps","purl":"pkg:composer/mediawiki/maps","source":"ghsa"}],"references":[{"url":"https://github.com/ProfessionalWiki/Maps/security/advisories/GHSA-4h7g-5542-v3fc","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ProfessionalWiki/Maps/pull/899","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ProfessionalWiki/Maps/commit/737a993fc2f40499e9bb22198fd1d56c25613806","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ProfessionalWiki/Maps/blob/12.1.3/RELEASE-NOTES.md","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ProfessionalWiki/Maps/releases/tag/12.1.3","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ProfessionalWiki/Maps","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-08-19T18:33:46.350Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-52854","url":"https://www.cve.org/CVERecord?id=CVE-2026-52854","licence":"CVE Terms of Use","modified":"2026-08-19T18:33:53.281Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4h7g-5542-v3fc","url":"https://github.com/advisories/GHSA-4h7g-5542-v3fc","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:10.324Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-52854","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52854","licence":"Public domain","modified":"2026-10-22T17:09:59.477Z"}],"updatedAt":"2026-11-25T22:59:33.881Z","epss":{"score":0.00638,"percentile":0.51897,"date":"2026-12-01T12:00:22.000Z"}}