# MapSVG – Vector maps, Image maps, Google Maps <= 8.16.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Map JavaScript Options

- **ID:** WPSEC-2026-1160
- **Plugin:** MapSVG – Vector maps, Image maps, Google Maps (`mapsvg-lite-interactive-vector-maps`), https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
- **Affected versions:** all versions before 8.16.2
- **Fixed in:** 8.16.2 (Update to 8.16.2 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-17)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/mapsvg-lite-interactive-vector-maps
- **Fix released:** 2026-10-16
- **Published:** 2026-10-17
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1160/

## Description

The MapSVG plugin for WordPress is vulnerable to Stored Cross-Site Scripting via map options in all versions up to, and including, 8.16.1. This is due to the map create, update, copy and import REST routes only requiring the edit_posts capability and accepting JavaScript event handler options (events, middlewares, beforeLoad, afterLoad and similar) without checking for the unfiltered_html capability. It is also due to UI label options being rendered as HTML. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts that will execute whenever a user views a page containing the map.

## References

- https://wpsec.com/vuln/WPSEC-2026-1160/
- https://plugins.svn.wordpress.org/mapsvg-lite-interactive-vector-maps/tags/8.16.2/
- https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

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

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.
