Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-12369 Overview
CVE-2025-12369 is a Stored Cross-Site Scripting (XSS) vulnerability in the Extensions for Leaflet Map plugin for WordPress. The flaw affects all versions up to and including 4.7. It resides in the geojsonmarker shortcode, which fails to properly sanitize user-supplied attributes and escape output. Authenticated users with Contributor-level access or higher can inject arbitrary JavaScript into pages. The injected scripts execute in the browser of any visitor who accesses the affected page. The vulnerability is tracked under CWE-79.
Critical Impact
Authenticated contributors can inject persistent JavaScript that executes against any site visitor, enabling session theft, administrative account takeover, and arbitrary redirection.
Affected Products
- Extensions for Leaflet Map plugin for WordPress — all versions through 4.7
- WordPress sites running the vulnerable plugin with Contributor-level or higher accounts enabled
- Any public-facing pages rendering the geojsonmarker shortcode
Discovery Timeline
- 2025-11-04 - CVE-2025-12369 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in the NVD database
Technical Details for CVE-2025-12369
Vulnerability Analysis
The vulnerability resides in the geojsonmarker shortcode handler defined in php/geojsonmarker.php of the Extensions for Leaflet Map plugin. Shortcode attributes supplied by a logged-in author are concatenated into page output without sufficient sanitization or escaping. When a visitor loads a page containing the malicious shortcode, their browser executes the attacker-controlled JavaScript in the context of the WordPress site origin.
The stored nature of the flaw amplifies impact. Payloads persist in post content and fire for every subsequent visitor, including administrators. Attackers can chain the primitive with WordPress REST endpoints to escalate privileges, create backdoor accounts, or exfiltrate authenticated session cookies when HttpOnly is not enforced on all tokens.
Root Cause
The root cause is missing input sanitization and output escaping on shortcode attributes passed to the geojsonmarker handler. The plugin accepts attribute values and renders them into HTML without applying WordPress hardening functions such as esc_attr(), esc_html(), or wp_kses(). The upstream fix is published in changeset 3387532.
Attack Vector
Exploitation requires an authenticated account with Contributor-level permissions or higher. The attacker creates or edits a post containing a crafted geojsonmarker shortcode with malicious attribute values. Once the post is published or previewed by a reviewer, the embedded script executes in the victim's browser. See the vulnerable source at geojsonmarker.php L90.
// No verified public exploit code is available for CVE-2025-12369.
// Review the vendor changeset for the specific attributes and sinks affected:
// https://plugins.trac.wordpress.org/changeset/3387532/
Detection Methods for CVE-2025-12369
Indicators of Compromise
- Posts or pages containing [geojsonmarker ...] shortcodes with attribute values that include angle brackets, javascript: URIs, or event handlers such as onerror= or onload=.
- Unexpected <script> tags, inline event handlers, or external script src references appearing in rendered post HTML.
- New or modified posts authored by Contributor-level accounts shortly before anomalous administrator session activity.
Detection Strategies
- Query the wp_posts table for post_content matching geojsonmarker combined with suspicious tokens (<script, onerror, onload, javascript:).
- Review web server access logs for requests to pages containing the shortcode followed by outbound requests to unfamiliar domains that could indicate data exfiltration.
- Monitor WordPress audit logs for Contributor-level accounts creating or editing posts that embed map shortcodes.
Monitoring Recommendations
- Enable a Content Security Policy (CSP) with report-uri or report-to directives to surface inline script execution attempts.
- Alert on new user registrations with elevated roles created shortly after shortcode activity.
- Track plugin version inventory and flag any WordPress site still running Extensions for Leaflet Map 4.7 or earlier.
How to Mitigate CVE-2025-12369
Immediate Actions Required
- Update the Extensions for Leaflet Map plugin to the version released in changeset 3387532, which supersedes 4.7.
- Audit all posts and pages for geojsonmarker shortcodes containing suspicious attribute content and remove any injected payloads.
- Review Contributor, Author, and Editor accounts for unauthorized or stale access and rotate credentials where required.
Patch Information
The WordPress plugin maintainers addressed the issue in the version following 4.7, as recorded in plugin changeset 3387532. Administrators can obtain the latest release from the Extensions for Leaflet Map plugin page. Full technical details are available in the Wordfence vulnerability report.
Workarounds
- Temporarily deactivate the Extensions for Leaflet Map plugin until the patched version is installed.
- Restrict Contributor and Author role assignments to trusted users and require editorial review before publishing posts that embed map shortcodes.
- Deploy a web application firewall rule that blocks shortcode attribute values containing <script, on*= handlers, or javascript: URIs.
# Update the plugin via WP-CLI once the fixed release is available
wp plugin update extensions-leaflet-map
wp plugin get extensions-leaflet-map --field=version
# Audit stored posts for injected payloads
wp db query "SELECT ID, post_title FROM wp_posts \
WHERE post_content LIKE '%geojsonmarker%' \
AND (post_content LIKE '%<script%' OR post_content LIKE '%javascript:%' OR post_content LIKE '%onerror=%');"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

