{
 "id": "WPSEC-2026-4233",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4233/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4233/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4233/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4233.json",
 "title": "Leaflet Map <= 3.4.7 - Authenticated (Contributor+) Stored Cross-Site Scripting via leaflet-geojson Shortcode Popup Content",
 "description": "The Leaflet Map plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the popup content of the leaflet-geojson shortcode (and the leaflet-kml and leaflet-gpx shortcodes built on it) in all versions up to, and including, 3.4.7. This is due to insufficient input sanitization and output escaping. The popup_text attribute was decoded back into HTML in the browser without sanitization and passed to Leaflet's bindPopup(). Feature properties from the GeoJSON source, used through popup_property, {property} templates and table_view, were also inserted into popup HTML without escaping. This makes it possible for authenticated attackers with contributor-level access and above to inject arbitrary web scripts in pages. They can do this with entity-encoded markup in shortcode attributes or by pointing the shortcode at a GeoJSON source they control. The scripts execute when a user opens the map popup on an injected page.",
 "plugin": {
  "slug": "leaflet-map",
  "name": "Leaflet Map",
  "full_name": "Leaflet Map",
  "wordpress_org": "https://wordpress.org/plugins/leaflet-map/",
  "advisories_url": "https://wpsec.com/vuln/plugin/leaflet-map/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/leaflet-map"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.4,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "2.2.0",
    "from_inclusive": true,
    "to": "3.4.8",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 2.2.0 before 3.4.8"
  ]
 },
 "introduced_in": "2.2.0",
 "fixed_in": "3.4.8",
 "remediation": "Update to 3.4.8 or later.",
 "fix_released": "2026-11-28T18:59:30+00:00",
 "published": "2026-11-29T19:41:25+00:00",
 "updated": "2026-11-29T16:19:19.950059+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4233/",
  "https://plugins.svn.wordpress.org/leaflet-map/tags/3.4.8/",
  "https://wordpress.org/plugins/leaflet-map/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/leaflet-map",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-11-29"
 }
}