CVE-2025-5122
📋 TL;DR
The Map Block Leaflet WordPress plugin has a stored XSS vulnerability in the 'url' parameter that allows authenticated attackers with Contributor access or higher to inject malicious scripts. These scripts execute when users view compromised pages, potentially stealing credentials or performing unauthorized actions. All WordPress sites using this plugin up to version 3.2.1 are affected.
💻 Affected Systems
- Map Block Leaflet WordPress Plugin
⚠️ Manual Verification Required
This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.
Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).
🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- Consider updating to the latest version as a precaution
⚠️ Risk & Real-World Impact
Worst Case
Attackers could steal administrator credentials, take over the WordPress site, install backdoors, deface pages, or redirect visitors to malicious sites.
Likely Case
Attackers with contributor accounts inject malicious scripts to steal session cookies, perform actions as other users, or display phishing content to visitors.
If Mitigated
With proper user access controls and content security policies, impact is limited to the specific compromised pages and user sessions.
🎯 Exploit Status
Exploitation requires authenticated access but is technically simple once attacker has contributor credentials.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 3.2.2
Vendor Advisory: https://wordpress.org/plugins/map-block-leaflet/#developers
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Map Block Leaflet' and click 'Update Now'. 4. Verify version shows 3.2.2 or higher.
🔧 Temporary Workarounds
Disable Plugin
allTemporarily disable the vulnerable plugin until patched
wp plugin deactivate map-block-leaflet
Restrict User Roles
allRemove contributor access or implement stricter role-based access controls
🧯 If You Can't Patch
- Implement Content Security Policy (CSP) headers to restrict script execution
- Regularly audit user accounts and remove unnecessary contributor-level access
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin panel → Plugins → Installed Plugins for Map Block Leaflet version 3.2.1 or lower
Check Version:
wp plugin get map-block-leaflet --field=version
Verify Fix Applied:
Verify plugin version shows 3.2.2 or higher in WordPress admin panel
📡 Detection & Monitoring
Log Indicators:
- Unusual POST requests to map block endpoints with script tags in parameters
- Multiple failed login attempts followed by successful contributor login
Network Indicators:
- Outbound connections to suspicious domains from WordPress server after page views
SIEM Query:
source="wordpress" AND ("map-block-leaflet" OR "leaflet-map-block") AND ("script" OR "javascript:" OR "onload=" OR "onerror=")
🔗 References
- https://plugins.trac.wordpress.org/browser/map-block-leaflet/trunk/build/leaflet-map-block/render.php#L41
- https://plugins.trac.wordpress.org/changeset/3302407/
- https://wordpress.org/plugins/map-block-leaflet/#developers
- https://www.wordfence.com/threat-intel/vulnerabilities/id/372f1cf3-df33-444c-b31e-8f71d128e30b?source=cve