Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-5016: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Relevanssi Relevanssi – A Better Search (Pro)

0
Medium
VulnerabilityCVE-2025-5016cvecve-2025-5016cwe-79
Published: Sat May 31 2025 (05/31/2025, 03:26:42 UTC)
Source: CVE Database V5
Vendor/Project: Relevanssi
Product: Relevanssi – A Better Search (Pro)

Description

The Relevanssi – A Better Search plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Excerpt Highlights in all versions up to, and including, 4.24.5 (Free) and 2.27.6 (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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 15:00:28 UTC

Technical Analysis

CVE-2025-5016 is a stored cross-site scripting vulnerability identified in the Relevanssi – A Better Search plugin for WordPress, affecting all versions up to 4.24.5 (Free) and 2.27.6 (Premium). The vulnerability stems from improper neutralization of input during web page generation, specifically in the Excerpt Highlights feature. This improper sanitization and output escaping allow unauthenticated attackers to inject arbitrary JavaScript code into pages generated by the plugin. When a user visits a page containing the injected script, the malicious code executes in their browser context, potentially compromising user sessions, stealing cookies, or performing actions on behalf of the user. The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation) and has a CVSS v3.1 base score of 4.7, indicating medium severity. The attack vector is network-based (AV:N), requires high attack complexity (AC:H), no privileges (PR:N), but does require user interaction (UI:R). The scope is changed (S:C) because the vulnerability affects components beyond the vulnerable plugin, impacting the confidentiality and integrity of user data (C:L/I:L), but not availability (A:N). No known exploits have been reported in the wild as of the publication date. The vulnerability affects a widely used WordPress plugin, increasing the potential attack surface for websites using it. The lack of available patches at the time of reporting necessitates immediate attention to mitigation strategies.

Potential Impact

The impact of CVE-2025-5016 on organizations worldwide can be significant due to the widespread use of WordPress and the popularity of the Relevanssi plugin for enhanced search capabilities. Successful exploitation allows attackers to execute arbitrary scripts in the context of users visiting affected pages, which can lead to session hijacking, theft of sensitive information such as authentication tokens or personal data, defacement of websites, or redirection to malicious sites. This undermines user trust and can result in reputational damage, legal liabilities, and compliance issues, especially for organizations handling sensitive or regulated data. Although the vulnerability does not directly affect system availability, the compromise of confidentiality and integrity can facilitate further attacks, including privilege escalation or lateral movement within networks. The requirement for user interaction means phishing or social engineering may be used to lure victims to vulnerable pages. The medium CVSS score reflects moderate ease of exploitation combined with impactful consequences. Organizations with high-traffic websites or those relying heavily on WordPress for customer engagement are at elevated risk.

Mitigation Recommendations

To mitigate CVE-2025-5016 effectively, organizations should: 1) Immediately update the Relevanssi plugin to a patched version once available from the vendor, as this is the most reliable fix. 2) In the interim, disable or restrict the Excerpt Highlights feature if feasible, to reduce the attack surface. 3) Implement Web Application Firewall (WAF) rules that detect and block suspicious script injection patterns targeting the plugin’s parameters. 4) Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts on affected web pages. 5) Conduct thorough input validation and output encoding on any custom code interacting with the plugin or its data. 6) Monitor web server and application logs for unusual requests or error patterns indicative of attempted exploitation. 7) Educate website administrators and users about the risks of clicking on untrusted links that may lead to maliciously crafted pages. 8) Regularly audit WordPress plugins and themes for vulnerabilities and maintain an up-to-date inventory to prioritize patching. These steps, combined, reduce the likelihood and impact of exploitation beyond generic advice.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2025-05-20T19:13:58.866Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 683a7ada182aa0cae2ce8ed1

Added to database: 5/31/2025, 3:43:22 AM

Last enriched: 2/27/2026, 3:00:28 PM

Last updated: 3/25/2026, 8:46:24 AM

Views: 55

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses