CVE-2025-31583

7.1 HIGH

📋 TL;DR

A Cross-Site Request Forgery (CSRF) vulnerability in the WP Copy Media URL WordPress plugin allows attackers to perform stored cross-site scripting (XSS) attacks. This affects WordPress sites using the plugin version 2.1 and earlier. Attackers can inject malicious scripts that execute when users visit compromised pages.

💻 Affected Systems

Products:
  • WP Copy Media URL WordPress Plugin
Versions: n/a through 2.1
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects WordPress installations with the WP Copy Media URL plugin installed and activated.

⚠️ 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 inject malicious JavaScript that steals administrator credentials, redirects users to phishing sites, or takes over the WordPress site completely.

🟠

Likely Case

Attackers inject malicious scripts that steal user session cookies or display unwanted content to visitors, potentially compromising user accounts.

🟢

If Mitigated

With proper CSRF protections and content security policies, the impact is limited to minor content manipulation that can be quickly cleaned.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

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

Requires tricking authenticated users into visiting malicious pages. The CSRF leads to stored XSS payload injection.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Version after 2.1

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/wp-copy-media-url/vulnerability/wordpress-wp-copy-media-url-plugin-2-1-csrf-to-stored-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'WP Copy Media URL'. 4. Click 'Update Now' if available. 5. If no update is available, deactivate and delete the plugin immediately.

🔧 Temporary Workarounds

Disable Plugin

WordPress

Temporarily disable the vulnerable plugin until patched version is available.

wp plugin deactivate wp-copy-media-url

🧯 If You Can't Patch

  • Remove the WP Copy Media URL plugin completely from your WordPress installation.
  • Implement strict Content Security Policy (CSP) headers to block inline script execution.

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for WP Copy Media URL version 2.1 or earlier.

Check Version:

wp plugin get wp-copy-media-url --field=version

Verify Fix Applied:

Verify plugin version is higher than 2.1 or confirm plugin is removed from plugins directory.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to wp-admin/admin-ajax.php with wp_copy_media_url actions
  • JavaScript injection in post/page content containing suspicious script tags

Network Indicators:

  • Unexpected outbound connections to external domains from your WordPress site
  • Suspicious referrer headers in requests to admin endpoints

SIEM Query:

source="wordpress.log" AND ("wp_copy_media_url" OR "admin-ajax.php") AND (POST OR "action=")

🔗 References

📤 Share & Export