Description
The Relevanssi – A Better Search plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Comment Content in all versions up to, and including, 4.28.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. This is only exploitable when the administrator has configured a non-empty value for the "Allowable tags in excerpts" setting, such as the default example value of <p><a><strong>, as the prefix-matching regex must have an allowable tag whose name is a prefix of the injected tag name.
Published: 2026-10-02
Score: 7.2 High
EPSS: < 1% Very Low
KEV: No
Impact: Stored cross‑site scripting (XSS) that allows arbitrary script execution in the browser of any visitor when a page containing a comment is displayed
Action: Immediate Patch
AI Analysis

Impact

Relevanssi – A Better Search, a popular WordPress plugin, suffers from a stored XSS flaw caused by insufficient input sanitization and output escaping for comment content. An unauthenticated attacker can embed a malicious script in a comment, which is subsequently rendered in the page generated for that comment. When users view the page, the injected script runs in their browser, enabling the attacker to hijack sessions, steal cookies, and conduct further phishing or credential‑stealing attacks. The vulnerability is a classic input‑validation weakness (CWE‑79).

Affected Systems

The flaw affects all Relevanssi plugin installations up to and including version 4.28.3. No other product or vendor is affected according to the CNA vendor list.

Risk and Exploitability

The CVSS score of 7.2 indicates a moderate‑to‑high severity vulnerability. The EPSS score is not available, so the actual likelihood of exploitation is unknown, but the fact that the weakness is exploitable by unauthenticated users and depends only on an administrator’s configuration of allowable excerpt tags underscores a high risk. The plugin is not listed in the CISA KEV catalog, but attackers could easily identify and target sites that use the vulnerable version because the comment submission form is publicly accessible and can be abused to inject payloads when a non‑empty value is configured for "Allowable tags in excerpts". The exploitation path requires only that an attacker submits a comment containing a script or similar tag with a prefix matching an allowed tag; the script then executes for each visitor who views the comment.

Generated by OpenCVE AI on October 2, 2026 at 08:59 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Relevanssi plugin to the latest released version that includes the input‑sanitization fix. The update removes the vulnerable logic and properly escapes comment content before storage and output.
  • Manually review and delete or neutralize existing comments that may contain injected script tags, or reset the comment content to benign text.
  • If an immediate update is not feasible, disable public comment posting or remove the comment feature entirely to block further injection until the patch is applied.

Generated by OpenCVE AI on October 2, 2026 at 08:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 03 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 02 Oct 2026 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Comesio
Comesio relevanssi – A Better Search
Wordpress-extensions
Wordpress-extensions relevanssi
Vendors & Products Comesio
Comesio relevanssi – A Better Search
Wordpress-extensions
Wordpress-extensions relevanssi

Fri, 02 Oct 2026 07: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 Comment Content in all versions up to, and including, 4.28.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. This is only exploitable when the administrator has configured a non-empty value for the "Allowable tags in excerpts" setting, such as the default example value of &lt;p&gt;&lt;a&gt;&lt;strong&gt;, as the prefix-matching regex must have an allowable tag whose name is a prefix of the injected tag name.
Title Relevanssi <= 4.28.3 - Unauthenticated Stored Cross-Site Scripting via Comment Content
Weaknesses CWE-79
References
Metrics cvssV3_1

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


Subscriptions

Comesio Relevanssi – A Better Search
Wordpress-extensions Relevanssi
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-10-03T15:42:49.891Z

Reserved: 2026-09-24T17:51:50.410Z

Link: CVE-2026-97641

cve-icon Vulnrichment

Updated: 2026-10-03T15:40:21.746Z

cve-icon NVD

Status : Deferred

Published: 2026-10-02T08:17:05.837

Modified: 2026-10-03T16:16:49.590

Link: CVE-2026-97641

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-02T14:46:14Z

Weaknesses
  • CWE-79

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