CVE-2026-97641

Relevanssi <= 4.28.3 - Unauthenticated Stored Cross-Site Scripting via Comment Content

Published Oct 2, 2026 CVSS 3.1 · 7.2 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

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
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Oct 3, 2026, 3:42 PM
Reserved
Sep 24, 2026, 5:51 PM
Status
Deferred
Published
Oct 2, 2026, 8:17 AM
Modified
Oct 3, 2026, 4:16 PM