# Extensions for Leaflet Map <= 5.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'choropleth' Shortcode

- **ID:** WPSEC-2026-1223
- **Plugin:** Extensions for Leaflet Map (`extensions-leaflet-map`), https://wordpress.org/plugins/extensions-leaflet-map/
- **Affected versions:** all versions before 6.0
- **Fixed in:** 6.0 (Update to 6.0 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-10-18)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/extensions-leaflet-map
- **Fix released:** 2026-10-17
- **Published:** 2026-10-18
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1223/

## Description

The Extensions for Leaflet Map plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'choropleth' shortcode in all versions up to, and including, 5.4. This is due to insufficient sanitization and escaping of the shortcode's content and attributes, which were bound as popup HTML and inserted into the legend's HTML in the browser. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-1223/
- https://plugins.svn.wordpress.org/extensions-leaflet-map/tags/6.0/
- https://wordpress.org/plugins/extensions-leaflet-map/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-1223/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
