CVE-2025-4054: Relevanssi <= 4.24.3 (Free) and <= 2.27.4 (Premium) - Unauthenticated Stored Cross-Site Scripting via Search Highlights
The Relevanssi – A Better Search plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the highlights functionality in all versions up to, and including, 4.24.3 (Free) and <= 2.27.4 (Premium), due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page via the search results.
Other sources
The Relevanssi – A Better Search plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the highlights functionality in all versions up to, and including, 4.24.3 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page via the search results.
— NVD
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-4054?
CVE-2025-4054 is classified as a high severity vulnerability due to its potential for Stored Cross-Site Scripting attacks.
How do I fix CVE-2025-4054?
To fix CVE-2025-4054, update the Relevanssi plugin to version 4.24.4 or later.
Who is affected by CVE-2025-4054?
CVE-2025-4054 affects all versions of the Relevanssi plugin for WordPress up to and including 4.24.3.
What type of vulnerability is CVE-2025-4054?
CVE-2025-4054 is a Stored Cross-Site Scripting vulnerability caused by inadequate sanitization of user input.
Can CVE-2025-4054 be exploited by unauthenticated users?
Yes, CVE-2025-4054 can be exploited by unauthenticated users, allowing them to execute scripts in the context of the affected site.