CVE-2025-4054

Relevanssi <= 4.24.3 (Free) and <= 2.27.4 (Premium) - Unauthenticated Stored Cross-Site Scripting via Search Highlights

Published May 7, 2025 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
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
Type Values Removed Values Added
Metrics epss

{'score': 0.00147}

epss

{'score': 0.00169}

Type Values Removed Values Added
Metrics ssvc

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

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.

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 8, 2026, 4:59 PM
Reserved
Apr 28, 2025, 10:40 PM
Status
Deferred
Published
May 7, 2025, 3:15 AM
Modified
Jun 17, 2026, 9:32 AM