CVE-2026-135618: Extensions for Leaflet Map <= 6.2.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'extraclasses' Shortcode Attribute
The Extensions for Leaflet Map plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'extraclasses (also icon, iconcolor, number)' parameter in all versions up to, and including, 6.2.1 due to insufficient input sanitization and output escaping. 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. The existing sanitization is ineffective for this context: wpksespost preserves bare double quotes (no HTML tags are required in the payload), and wpjsonencode correctly escapes the value for the JavaScript string-literal layer but the reconstituted double quote remains live when Leaflet.ExtraMarkers builds its inner HTML, allowing a single-quoted shortcode attribute value to close the HTML attribute and inject attacker-controlled event handlers.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated WordPress user with Contributor-level access or higher can exploit it. The attacker must be able to add a shortcode using one of the affected parameters: extraclasses, icon, iconcolor, or number.
When does the injected script execute?
The payload is stored in an affected page and executes whenever another user accesses that page. Exploitation does not require interaction beyond viewing the injected page.
Are sites affected if untrusted users cannot create or edit content?
The described attack requires authenticated Contributor-level access or above. Sites that do not grant such access to untrusted users have reduced exposure, although compromised accounts with those privileges could still be used.
How can I identify potentially affected content?
Review pages created or edited by Contributor-or-higher users for Extensions for Leaflet Map shortcodes using extraclasses, icon, iconcolor, or number attributes. Pay particular attention to attribute values containing quotes or unexpected event-handler-like content.