CVE-2026-135618 in Extensions for Leaflet Map Plugininfo

Summary

by MITRE • 11/27/2026

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: wp_kses_post preserves bare double quotes (no HTML tags are required in the payload), and wp_json_encode 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.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 11/27/2026

The Extensions for Leaflet Map plugin for WordPress contains a critical security vulnerability affecting all versions up to and including 6.2.1. This flaw is classified as a Stored Cross-Site Scripting (XSS) issue, which represents one of the most prevalent and dangerous web application vulnerabilities according to industry standards such as CWE-79. The root cause lies in insufficient input sanitization and output escaping mechanisms within the plugin's handling of specific parameters, namely extraclasses, icon, and iconcolor. These parameters are processed during the creation or modification of map markers, allowing malicious actors to inject arbitrary web scripts into the database that persist until manually removed by an administrator.

The technical nature of this vulnerability stems from a complex interaction between WordPress core sanitization functions and JavaScript rendering logic in Leaflet.ExtraMarkers. While the plugin employs wp_kses_post for input validation, this function is designed primarily to strip HTML tags while preserving certain safe attributes. However, it does not adequately neutralize bare double quotes when no HTML tag structure is present in the payload. Furthermore, although the value undergoes JSON encoding via wp_json_encode to escape characters for JavaScript string literals, a critical flaw emerges during the reconstitution phase. When Leaflet.ExtraMarkers constructs its inner HTML using these values, it fails to properly handle the context of an attribute value enclosed in single quotes. This allows an attacker to use double quotes within their payload to break out of the intended scope and inject executable event handlers directly into the DOM structure.

This vulnerability requires authenticated access with contributor-level privileges or higher to exploit, which aligns with ATT&CK technique T1059 (Command and Scripting Interpreter) in the context of web application exploitation via stored payloads. An attacker who gains such a level of access can craft malicious marker configurations that embed JavaScript code. Once saved, this payload becomes part of the persistent data store associated with the map configuration. The danger is amplified because the injected script executes automatically whenever any user views the page containing the compromised map marker. This execution occurs in the context of the victim's session, potentially allowing for cookie theft, session hijacking, or redirection to malicious sites without the user's knowledge or consent.

The operational impact of this vulnerability extends beyond simple defacement. Because the script executes upon page load, it can be used to perform actions on behalf of the authenticated user viewing the map. This includes stealing sensitive data stored in local storage or cookies, manipulating the DOM to display phishing content, or even leveraging additional vulnerabilities if present within the same session context. The persistence of the payload means that every subsequent visitor to the affected page is at risk, turning a single compromised account into a vector for widespread compromise across all users who access the map interface.

Mitigation strategies must address both immediate remediation and long-term security hygiene. The most effective solution is to upgrade the Extensions for Leaflet Map plugin to version 6.2.2 or later, where these input validation and output escaping flaws have been corrected by the developers. For organizations unable to update immediately due to compatibility constraints, temporary mitigations should focus on restricting contributor-level access to trusted individuals only and implementing strict Content Security Policy headers that restrict script execution sources. Additionally, administrators should audit existing map configurations for any suspicious markers or unusual attribute values that may indicate prior exploitation attempts. Regular security audits of third-party WordPress plugins are essential to identify similar patterns where sanitization functions like wp_kses_post are misapplied in contexts requiring stricter escaping protocols such as HTML entity encoding or context-aware output filtering.

Responsible

Wordfence

Reservation

11/23/2026

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00443

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!