CVE-2025-58265

6.5 MEDIUM

📋 TL;DR

This stored cross-site scripting (XSS) vulnerability in the WordPress Events Manager - OpenStreetMaps plugin allows attackers to inject malicious scripts into web pages that are then executed when other users view those pages. The vulnerability affects all WordPress sites using this plugin from any version up to and including 4.2.1. Attackers could steal session cookies, redirect users to malicious sites, or perform actions on behalf of authenticated users.

💻 Affected Systems

Products:
  • WordPress Events Manager - OpenStreetMaps plugin
Versions: All versions up to and including 4.2.1
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: All WordPress installations using the vulnerable plugin are affected regardless of configuration.

⚠️ 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.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. 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, or redirect all visitors to malicious sites, potentially leading to complete site compromise and data theft.

🟠

Likely Case

Attackers inject malicious JavaScript to steal user session cookies or credentials, potentially gaining unauthorized access to user accounts and performing actions on their behalf.

🟢

If Mitigated

With proper input validation and output encoding, malicious scripts would be neutralized before reaching users, preventing any exploitation.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires the attacker to have some level of access to inject malicious scripts, but once stored, the payload executes for all users viewing the affected page.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Version after 4.2.1

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/stonehenge-em-osm/vulnerability/wordpress-events-manager-openstreetmaps-plugin-4-2-1-cross-site-scripting-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Events Manager - OpenStreetMaps'. 4. Click 'Update Now' if update is available. 5. If no update appears, manually download latest version from WordPress repository and replace plugin files.

🔧 Temporary Workarounds

Disable vulnerable plugin

WordPress

Temporarily disable the Events Manager - OpenStreetMaps plugin until patched

wp plugin deactivate stonehenge-em-osm

Implement Content Security Policy

all

Add CSP headers to restrict script execution sources

Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
Or add to wp-config.php: header("Content-Security-Policy: default-src 'self'; script-src 'self'");

🧯 If You Can't Patch

  • Disable the Events Manager - OpenStreetMaps plugin immediately
  • Implement web application firewall (WAF) rules to block XSS payloads

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for 'Events Manager - OpenStreetMaps' version 4.2.1 or earlier

Check Version:

wp plugin get stonehenge-em-osm --field=version

Verify Fix Applied:

Verify plugin version is higher than 4.2.1 in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to plugin endpoints with script tags
  • Multiple failed login attempts following suspicious page views
  • User agents containing script-like patterns

Network Indicators:

  • HTTP requests containing <script> tags in parameters
  • Outbound connections to unknown domains from your WordPress site

SIEM Query:

source="wordpress.log" AND ("<script>" OR "javascript:" OR "onload=" OR "onerror=")

🔗 References

📤 Share & Export