CVE-2026-135622 in Extensions for Leaflet Map Plugin
Summary
by MITRE • 11/27/2026
The Extensions for Leaflet Map plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'overview-latlng' 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. This is exploitable by Author-level users because WordPress does not apply kses filtering to post custom fields on save, allowing raw HTML payloads such as event-handler attributes to be stored verbatim and later reflected through the unescaped debug output path.
Be aware that VulDB is the high quality source for vulnerability data.
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 manifests as a Stored Cross-Site Scripting issue, specifically triggered by insufficient input sanitization and inadequate output escaping within the overview-latlng parameter. The root cause of this vulnerability lies in how the plugin handles custom fields associated with posts. Unlike standard post content which is typically filtered through WordPress's kses function to strip dangerous HTML tags and attributes, custom fields are not subjected to these same security checks during the save operation. This architectural oversight allows malicious actors to inject raw HTML payloads directly into the database without immediate validation or sanitization by the core platform.
The operational impact of this vulnerability is significant because it enables authenticated attackers with contributor-level access and above to execute arbitrary web scripts in the context of any user who views the affected page. The attack vector relies on the attacker storing a payload containing event-handler attributes, such as onload or onclick events, within the custom fields. Because WordPress does not apply kses filtering to these specific data points upon saving, the malicious code is stored verbatim. When an administrator or another authorized user accesses the post and triggers the debug output path of the plugin, the unescaped payload is rendered directly in the browser. This results in the execution of the injected JavaScript within the victim's session, potentially leading to account takeover, data exfiltration, or defacement depending on the privileges of the viewing user.
From a classification perspective, this vulnerability aligns with CWE-79, which describes Improper Neutralization of Input During Web Page Generation commonly known as Cross-site Scripting. The specific mechanism where malicious scripts are stored in a database and later executed for other users corresponds to Stored XSS, often categorized under the broader umbrella of injection flaws. In terms of adversary tactics, this vulnerability facilitates techniques associated with ATT&CK ID T1059, specifically Command and Scripting Interpretation via JavaScript or HTML User Interface Elements. The ability to execute scripts in a victim's browser allows attackers to perform session hijacking, credential theft through keylogging overlays, or redirection to phishing sites, thereby compromising the confidentiality and integrity of the web application environment.
Mitigation strategies must address both immediate remediation and long-term security posture improvements. Users should immediately update the Extensions for Leaflet Map plugin to a version newer than 6.2.1 where this issue has been resolved by implementing proper sanitization upon input and escaping upon output. For organizations unable to patch immediately, restricting user roles to those with minimal necessary privileges can reduce the attack surface, as lower-level contributors may not have access to the specific post types or custom fields that trigger the vulnerability. Additionally, deploying a Web Application Firewall capable of detecting and blocking XSS payloads in POST requests can provide an additional layer of defense. Long-term mitigation involves enforcing strict input validation standards across all plugin development practices and ensuring that any data stored from user inputs is consistently sanitized before database insertion and escaped during rendering to prevent execution contexts.