CVE-2025-4054

6.1 MEDIUM

📋 TL;DR

The Relevanssi WordPress plugin has a stored XSS vulnerability in its highlights functionality that allows unauthenticated attackers to inject malicious scripts into search result pages. When users view compromised search results, the scripts execute in their browsers. All WordPress sites using Relevanssi versions up to 4.24.3 are affected.

💻 Affected Systems

Products:
  • Relevanssi – A Better Search WordPress plugin
Versions: All versions up to and including 4.24.3
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: All WordPress installations with vulnerable Relevanssi versions 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 admin session cookies, redirect users to malicious sites, deface websites, or perform actions as authenticated users.

🟠

Likely Case

Attackers inject malicious scripts that steal user session data or redirect users to phishing sites via search results.

🟢

If Mitigated

With proper input validation and output escaping, the vulnerability is prevented and no impact occurs.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

The vulnerability is in publicly accessible search functionality and requires minimal technical skill to exploit.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 4.24.4 or later

Vendor Advisory: https://plugins.trac.wordpress.org/changeset/3283795/

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find Relevanssi and click 'Update Now'. 4. Verify version is 4.24.4 or higher.

🔧 Temporary Workarounds

Disable highlights functionality

all

Temporarily disable the vulnerable highlights feature in Relevanssi settings

Disable plugin

all

Deactivate Relevanssi plugin until patched

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block XSS payloads in search parameters
  • Restrict search functionality to authenticated users only

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel → Plugins → Installed Plugins → Relevanssi version

Check Version:

wp plugin list --name=relevanssi --field=version

Verify Fix Applied:

Verify Relevanssi version is 4.24.4 or higher in WordPress admin

📡 Detection & Monitoring

Log Indicators:

  • Unusual search queries containing script tags or JavaScript code
  • Multiple failed search attempts with suspicious patterns

Network Indicators:

  • HTTP requests to search endpoints with encoded script payloads

SIEM Query:

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

🔗 References

📤 Share & Export