{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4233",
 "modified": "2026-11-29T19:41:25Z",
 "published": "2026-11-29T19:41:25Z",
 "summary": "Leaflet Map <= 3.4.7 - Authenticated (Contributor+) Stored Cross-Site Scripting via leaflet-geojson Shortcode Popup Content",
 "details": "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.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "leaflet-map"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "2.2.0"
      },
      {
       "fixed": "3.4.8"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 2.2.0 before 3.4.8"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4233/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/leaflet-map/tags/3.4.8/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/leaflet-map/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4233/",
  "cwe_ids": [
   "CWE-79"
  ],
  "vulnerability_type": "XSS",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
