CVE-2025-46227

6.5 MEDIUM

📋 TL;DR

This stored cross-site scripting (XSS) vulnerability in the Custom Related Posts WordPress plugin allows attackers to inject malicious scripts into web pages. When users view pages containing the malicious content, the scripts execute in their browsers. This affects all WordPress sites using Custom Related Posts version 1.7.4 or earlier.

💻 Affected Systems

Products:
  • Custom Related Posts WordPress Plugin
Versions: n/a through 1.7.4
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: All WordPress installations using vulnerable plugin versions are affected regardless of configuration.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could steal administrator session cookies, take over WordPress admin accounts, deface websites, or redirect users to malicious sites.

🟠

Likely Case

Attackers inject malicious JavaScript to steal user session cookies or credentials, potentially compromising user accounts.

🟢

If Mitigated

With proper input validation and output escaping, malicious scripts would be neutralized before reaching users.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires contributor-level access or higher to inject malicious content. Public proof-of-concept details are available.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.7.5 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/custom-related-posts/vulnerability/wordpress-custom-related-posts-1-7-4-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 'Custom Related Posts' and click 'Update Now'. 4. Verify update to version 1.7.5 or later.

🔧 Temporary Workarounds

Disable Plugin

all

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate custom-related-posts

Restrict User Roles

all

Limit contributor and author access to reduce attack surface

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block XSS payloads
  • Enable Content Security Policy (CSP) headers to restrict script execution

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for Custom Related Posts version

Check Version:

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

Verify Fix Applied:

Verify plugin version is 1.7.5 or higher in WordPress admin

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to plugin endpoints
  • JavaScript payloads in form submissions

Network Indicators:

  • Malicious script tags in HTTP requests to WordPress

SIEM Query:

source="wordpress" AND ("custom-related-posts" OR "crp") AND ("script" OR "javascript" OR "onload" OR "onerror")

🔗 References

📤 Share & Export