Description
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.
Published: 2025-05-07
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting (XSS)
Action: Immediate Patch
AI Analysis

Impact

The Relevanssi – A Better Search plugin for WordPress is vulnerable to stored cross‑site scripting because the highlights feature does not properly sanitize or escape user input. Arbitrary scripts injected by unauthenticated attackers are persisted in the search result content and are executed in the browser context of any visitor who views a page containing the highlighted content. This flaw allows attackers to deface sites, steal user credentials, or deliver malware.

Affected Systems

WordPress sites running Relevanssi – A Better Search, both the free and premium editions, up to and including version 4.24.3 for the free edition and version 2.27.4 for the premium edition. These versions are distributed through the WordPress Plugin Repository and the official Relevanssi website.

Risk and Exploitability

The CVSS score of 6.1 indicates moderate severity, and the EPSS score of less than 1% suggests a low likelihood of exploitation in the wild. The attack vector is remote, web‑based, and requires no authentication; this inference is based on the description of stored scripts executing when users access search results. While the vulnerability is not listed in the CISA KEV catalog, the ability for any visitor to trigger the payload keeps the risk significant for affected sites.

Generated by OpenCVE AI on April 22, 2026 at 01:34 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Relevanssi to the latest release (free to version 4.24.4 or newer, premium to version 2.27.5 or newer).
  • If an upgrade cannot be performed immediately, disable the highlights functionality in the plugin’s settings to remove the injection vector.
  • Keep WordPress core and all plugins updated to their latest secure versions, and consider deploying a web application firewall to block suspicious payloads.

Generated by OpenCVE AI on April 22, 2026 at 01:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2025-13660 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.
History

Wed, 08 Apr 2026 17:45:00 +0000

Type Values Removed Values Added
Description 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. 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.
Title Relevanssi <= 4.24.3 - Unauthenticated Stored Cross-Site Scripting via Search Highlights Relevanssi <= 4.24.3 (Free) and <= 2.27.4 (Premium) - Unauthenticated Stored Cross-Site Scripting via Search Highlights

Mon, 14 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.00147}

epss

{'score': 0.00169}


Wed, 07 May 2025 14:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 07 May 2025 03:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Relevanssi <= 4.24.3 - Unauthenticated Stored Cross-Site Scripting via Search Highlights
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T16:59:54.984Z

Reserved: 2025-04-28T22:40:29.874Z

Link: CVE-2025-4054

cve-icon Vulnrichment

Updated: 2025-05-07T13:21:19.416Z

cve-icon NVD

Status : Deferred

Published: 2025-05-07T03:15:18.880

Modified: 2026-04-15T00:35:42.020

Link: CVE-2025-4054

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-22T01:45:05Z

Weaknesses