CVE-2025-4054
WordPress vulnerability analysis and mitigation

Overview

The Relevanssi – A Better Search plugin for WordPress is vulnerable to Stored Cross-Site Scripting (XSS) via the highlights functionality in versions up to and including 4.24.3. The vulnerability was discovered and disclosed in May 2025, affecting all installations of the plugin up to the specified version (NVD).

Technical details

The vulnerability stems from insufficient input sanitization and output escaping in the highlights functionality. This security flaw allows unauthenticated attackers to inject arbitrary web scripts that execute whenever a user accesses an injected page via the search results. The vulnerability has been assigned a CVSS v3.1 Base Score of 6.1 (MEDIUM) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (NVD, Wordfence).

Impact

The vulnerability allows unauthenticated attackers to inject malicious scripts that execute in users' browsers when they view search results. This could lead to potential data theft, session hijacking, or other client-side attacks against users who access search results containing the injected scripts (NVD).

Mitigation and workarounds

The vulnerability has been patched in version 4.24.4. Site administrators are strongly advised to update to this version immediately. The update includes security fixes to stop XSS attacks in comments when highlighting post content (WordPress Plugin).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management