CVE-2025-25123

7.1 HIGH

📋 TL;DR

A Cross-Site Request Forgery (CSRF) vulnerability in the xdark Easy Related Posts WordPress plugin allows attackers to perform stored cross-site scripting (XSS) attacks. This affects WordPress sites using Easy Related Posts plugin versions up to 2.0.2. Attackers can inject malicious scripts that execute when other users view affected pages.

💻 Affected Systems

Products:
  • xdark Easy Related Posts WordPress Plugin
Versions: n/a through 2.0.2
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Affects WordPress installations with the Easy Related Posts plugin enabled. The vulnerability requires the plugin to be active and accessible.

⚠️ 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 malicious sites, or performs actions on behalf of authenticated users, potentially leading to complete site compromise.

🟠

Likely Case

Attackers inject malicious scripts that execute when users view related posts, potentially stealing session cookies or performing unauthorized actions on behalf of logged-in users.

🟢

If Mitigated

With proper CSRF protections and content security policies, the attack surface is reduced, though the vulnerability still exists in the codebase.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

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

Exploitation requires tricking an authenticated user (with appropriate permissions) to visit a malicious page. The CSRF leads to stored XSS payload injection.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Version after 2.0.2

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/easy-related-posts/vulnerability/wordpress-easy-related-posts-plugin-2-0-2-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 'Easy Related Posts' and check if update is available. 4. Click 'Update Now' to update to the latest version. 5. Verify the plugin version is above 2.0.2.

🔧 Temporary Workarounds

Disable Easy Related Posts Plugin

WordPress

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate easy-related-posts

Implement CSRF Protection Headers

all

Add Content Security Policy headers to mitigate XSS impact

Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
Add to nginx config: add_header Content-Security-Policy "default-src 'self'; script-src 'self'";

🧯 If You Can't Patch

  • Disable the Easy Related Posts plugin immediately
  • Implement strict Content Security Policy headers to prevent script execution from unauthorized sources

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for Easy Related Posts version. If version is 2.0.2 or lower, you are vulnerable.

Check Version:

wp plugin get easy-related-posts --field=version

Verify Fix Applied:

After updating, verify the plugin version is above 2.0.2 in WordPress admin > Plugins > Installed Plugins.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to WordPress admin-ajax.php or admin-post.php endpoints related to easy-related-posts
  • Multiple failed CSRF token validations in WordPress debug logs

Network Indicators:

  • Unexpected JavaScript payloads in HTTP POST requests to WordPress admin endpoints
  • Cross-origin requests to WordPress admin interfaces from suspicious domains

SIEM Query:

source="wordpress.log" AND ("easy-related-posts" OR "admin-ajax.php") AND (POST OR "csrf" OR "nonce")

🔗 References

📤 Share & Export