CVE-2024-3670: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in harmr Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)
CVE-2024-3670 is a stored cross-site scripting (XSS) vulnerability in the Leaflet Maps Marker WordPress plugin affecting all versions up to 3. 12. 8. It arises from improper input sanitization and output escaping of user-supplied shortcode attributes such as 'mapwidthunit'. Authenticated users with contributor-level or higher privileges can inject malicious scripts that execute when any user views the compromised page. The vulnerability has a CVSS score of 6. 4, indicating medium severity, with potential impacts on confidentiality and integrity but no direct availability impact. Exploitation does not require user interaction but does require authenticated access. No known exploits are currently reported in the wild. Organizations using this plugin on WordPress sites should prioritize patching or apply mitigations to prevent script injection and protect site visitors and administrators from session hijacking or other malicious activities.
AI Analysis
Technical Summary
CVE-2024-3670 is a stored cross-site scripting (XSS) vulnerability identified in the Leaflet Maps Marker plugin for WordPress, which integrates mapping services such as Google Maps, OpenStreetMap, and Bing Maps. The vulnerability exists due to improper neutralization of input during web page generation, specifically insufficient sanitization and escaping of user-supplied attributes in the plugin's 'mapsmarker' shortcode, notably the 'mapwidthunit' attribute. This flaw allows authenticated users with contributor-level permissions or higher to inject arbitrary JavaScript code into pages or posts. When other users access these pages, the injected scripts execute in their browsers, potentially leading to session hijacking, privilege escalation, or unauthorized actions within the WordPress environment. The vulnerability affects all versions up to and including 3.12.8. The CVSS v3.1 base score is 6.4, reflecting a medium severity with network attack vector, low attack complexity, requiring privileges but no user interaction, and impacting confidentiality and integrity with a scope change. No public exploits have been reported yet, but the vulnerability poses a significant risk due to the widespread use of the plugin in WordPress sites. The root cause is inadequate input validation and output encoding in the plugin's shortcode processing logic, which fails to neutralize malicious payloads embedded in shortcode attributes.
Potential Impact
The primary impact of CVE-2024-3670 is the compromise of confidentiality and integrity within affected WordPress sites using the Leaflet Maps Marker plugin. An attacker with contributor-level access can inject persistent malicious scripts that execute in the context of site visitors and administrators, potentially stealing authentication cookies, performing actions on behalf of users, or defacing content. This can lead to unauthorized access, data leakage, and reputational damage. Since the vulnerability requires authenticated access, it limits exploitation to insiders or compromised accounts but remains a serious threat in environments with multiple contributors or weak account controls. The vulnerability does not directly affect availability but can indirectly cause service disruption through malicious actions or cleanup efforts. Organizations relying on this plugin for map functionality on their WordPress sites, especially those with multiple content contributors, face increased risk of targeted attacks and broader compromise if attackers leverage this flaw to escalate privileges or pivot to other parts of the infrastructure.
Mitigation Recommendations
To mitigate CVE-2024-3670, organizations should immediately update the Leaflet Maps Marker plugin to a patched version once released by the vendor. Until an official patch is available, administrators should restrict contributor-level and higher permissions to trusted users only and audit existing user accounts for suspicious activity. Implementing a Web Application Firewall (WAF) with rules to detect and block malicious script payloads in shortcode attributes can reduce exploitation risk. Additionally, site owners should enable Content Security Policy (CSP) headers to limit the execution of unauthorized scripts. Regularly scanning WordPress sites for injected scripts and monitoring logs for unusual shortcode usage patterns can help detect exploitation attempts. Educating contributors about safe content practices and enforcing strong authentication mechanisms (e.g., MFA) further reduces the risk of account compromise and subsequent exploitation.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, France, Netherlands, India, Brazil, Japan
CVE-2024-3670: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in harmr Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)
Description
CVE-2024-3670 is a stored cross-site scripting (XSS) vulnerability in the Leaflet Maps Marker WordPress plugin affecting all versions up to 3. 12. 8. It arises from improper input sanitization and output escaping of user-supplied shortcode attributes such as 'mapwidthunit'. Authenticated users with contributor-level or higher privileges can inject malicious scripts that execute when any user views the compromised page. The vulnerability has a CVSS score of 6. 4, indicating medium severity, with potential impacts on confidentiality and integrity but no direct availability impact. Exploitation does not require user interaction but does require authenticated access. No known exploits are currently reported in the wild. Organizations using this plugin on WordPress sites should prioritize patching or apply mitigations to prevent script injection and protect site visitors and administrators from session hijacking or other malicious activities.
AI-Powered Analysis
Technical Analysis
CVE-2024-3670 is a stored cross-site scripting (XSS) vulnerability identified in the Leaflet Maps Marker plugin for WordPress, which integrates mapping services such as Google Maps, OpenStreetMap, and Bing Maps. The vulnerability exists due to improper neutralization of input during web page generation, specifically insufficient sanitization and escaping of user-supplied attributes in the plugin's 'mapsmarker' shortcode, notably the 'mapwidthunit' attribute. This flaw allows authenticated users with contributor-level permissions or higher to inject arbitrary JavaScript code into pages or posts. When other users access these pages, the injected scripts execute in their browsers, potentially leading to session hijacking, privilege escalation, or unauthorized actions within the WordPress environment. The vulnerability affects all versions up to and including 3.12.8. The CVSS v3.1 base score is 6.4, reflecting a medium severity with network attack vector, low attack complexity, requiring privileges but no user interaction, and impacting confidentiality and integrity with a scope change. No public exploits have been reported yet, but the vulnerability poses a significant risk due to the widespread use of the plugin in WordPress sites. The root cause is inadequate input validation and output encoding in the plugin's shortcode processing logic, which fails to neutralize malicious payloads embedded in shortcode attributes.
Potential Impact
The primary impact of CVE-2024-3670 is the compromise of confidentiality and integrity within affected WordPress sites using the Leaflet Maps Marker plugin. An attacker with contributor-level access can inject persistent malicious scripts that execute in the context of site visitors and administrators, potentially stealing authentication cookies, performing actions on behalf of users, or defacing content. This can lead to unauthorized access, data leakage, and reputational damage. Since the vulnerability requires authenticated access, it limits exploitation to insiders or compromised accounts but remains a serious threat in environments with multiple contributors or weak account controls. The vulnerability does not directly affect availability but can indirectly cause service disruption through malicious actions or cleanup efforts. Organizations relying on this plugin for map functionality on their WordPress sites, especially those with multiple content contributors, face increased risk of targeted attacks and broader compromise if attackers leverage this flaw to escalate privileges or pivot to other parts of the infrastructure.
Mitigation Recommendations
To mitigate CVE-2024-3670, organizations should immediately update the Leaflet Maps Marker plugin to a patched version once released by the vendor. Until an official patch is available, administrators should restrict contributor-level and higher permissions to trusted users only and audit existing user accounts for suspicious activity. Implementing a Web Application Firewall (WAF) with rules to detect and block malicious script payloads in shortcode attributes can reduce exploitation risk. Additionally, site owners should enable Content Security Policy (CSP) headers to limit the execution of unauthorized scripts. Regularly scanning WordPress sites for injected scripts and monitoring logs for unusual shortcode usage patterns can help detect exploitation attempts. Educating contributors about safe content practices and enforcing strong authentication mechanisms (e.g., MFA) further reduces the risk of account compromise and subsequent exploitation.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Wordfence
- Date Reserved
- 2024-04-11T19:25:58.226Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 699f6c99b7ef31ef0b566ab2
Added to database: 2/25/2026, 9:41:45 PM
Last enriched: 2/26/2026, 6:22:19 AM
Last updated: 2/26/2026, 11:24:43 AM
Views: 1
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2025-64999: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Checkmk GmbH Checkmk
HighCVE-2026-28138: Deserialization of Untrusted Data in Stylemix uListing
HighCVE-2026-28136: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in VeronaLabs WP SMS
HighCVE-2026-28132: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in villatheme WooCommerce Photo Reviews
HighCVE-2026-28131: Insertion of Sensitive Information Into Sent Data in WPVibes Elementor Addon Elements
HighActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.