# CVE-2025-4054: Relevanssi <= 4.24.3 (Free) and <= 2.27.4 (Premium) - Unauthenticated Stored Cross-Site Scripting via Search Highlights

- Severity: Medium 6.1 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 45% of CVEs (2026-11-30)
- Published: 2025-05-07T02:23:35.152Z
- Modified: 2026-06-17T09:32:23.957Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Wordfence

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

(As written by CVE List.)

## Affected

- Relevanssi Relevanssi Premium: up to 2.27.4
- comesio Relevanssi – A Better Search: up to 4.24.3

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/6f77f10b-f142-4859-a941-0fbde6ef7fdb?source=cve>
- <https://plugins.trac.wordpress.org/browser/relevanssi/tags/4.24.3/lib/excerpts-highlights.php#L683>
- <https://plugins.trac.wordpress.org/browser/relevanssi/tags/4.24.3/lib/excerpts-highlights.php#L508>
- <https://www.relevanssi.com/user-manual/installing-relevanssi-and-adjusting-the-settings/>
- <https://plugins.trac.wordpress.org/changeset/3283795/>

## Sources

- CVE List: [CVE-2025-4054](https://www.cve.org/CVERecord?id=CVE-2025-4054), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2025-4054](https://nvd.nist.gov/vuln/detail/CVE-2025-4054), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-4054 · Whole record: https://cve.day/CVE-2025-4054.json · Rebuilt by cve.day 2026-11-25T22:58:57.677Z
