CVE-2025-23476

7.1 HIGH

📋 TL;DR

A Cross-Site Request Forgery (CSRF) vulnerability in the WordPress my-related-posts plugin allows attackers to perform stored cross-site scripting (XSS) attacks. This affects WordPress sites using the my-related-posts plugin version 1.1 and earlier. Attackers can inject malicious scripts that execute when other users view affected pages.

💻 Affected Systems

Products:
  • WordPress my-related-posts plugin
Versions: 1.1 and earlier
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects WordPress installations with the my-related-posts 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 persistent malicious scripts that steal session cookies, redirect users to phishing sites, or perform actions as authenticated users, potentially compromising the entire WordPress site.

🟠

Likely Case

Attackers trick administrators into executing malicious requests that inject JavaScript payloads, leading to session hijacking or defacement of the WordPress site.

🟢

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: MEDIUM

🎯 Exploit Status

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

Exploitation requires tricking an authenticated user (typically an administrator) to click a malicious link while logged in.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.2 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/my-related-posts/vulnerability/wordpress-my-related-posts-plugin-1-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 'my-related-posts' and update to version 1.2 or later. 4. If update not available, deactivate and delete the plugin.

🔧 Temporary Workarounds

Implement CSRF Protection Headers

all

Add Content Security Policy headers to restrict script execution sources

Add to .htaccess: Header set Content-Security-Policy "script-src 'self'"
Add to wp-config.php: define('FORCE_SSL_ADMIN', true);

🧯 If You Can't Patch

  • Deactivate the my-related-posts plugin immediately
  • Implement web application firewall rules to block suspicious POST requests to WordPress admin endpoints

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for my-related-posts version 1.1 or earlier

Check Version:

wp plugin list --name=my-related-posts --field=version

Verify Fix Applied:

Verify my-related-posts plugin version is 1.2 or later in WordPress admin

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to wp-admin/admin-ajax.php with my_related_posts parameters
  • Multiple failed CSRF token validations in WordPress logs

Network Indicators:

  • Unexpected JavaScript injection in plugin-related HTTP responses
  • Suspicious referrer headers in admin area requests

SIEM Query:

source="wordpress.log" AND "my_related_posts" AND ("POST" OR "admin-ajax")

🔗 References

📤 Share & Export