Description
The Relevanssi – A Better Search plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 4.28.5 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 requires the site to have both the comment indexing and comment highlighting options enabled, and the payload only fires when a visitor reaches a singular page via a Relevanssi search-result permalink carrying the highlight query parameter.
Published: 2026-10-31
Score: 7.2 High
EPSS: n/a
KEV: No
Impact: Unauthenticated Stored Cross‑Site Scripting
Action: Immediate Patch
AI Analysis

Impact

The Relevanssi – A Better Search plugin is vulnerable to Stored Cross‑Site Scripting because comment content is stored and later displayed without proper sanitization or escaping. An attacker who can submit a comment can inject arbitrary JavaScript or other payloads that will be rendered when visitors view a page containing a Relevanssi search‑result permalink with the highlight query parameter. This allows the attacker to run scripts in the context of authenticated users, enabling session hijacking, defacement, or data theft.

Affected Systems

Vulnerability affects the Relevanssi WordPress plugin (vendor comesio) version 4.28.5 and all earlier releases. The issue is present on any WordPress site that has the plugin installed, provided that the comment indexing and comment highlighting options are enabled.

Risk and Exploitability

The vulnerability has a CVSS score of 7.2, indicating a high impact if exploited. EPSS data is unavailable, and the flaw is not listed in the CISA KEV catalog. Attackers can exploit the flaw without authentication, but the payload only triggers on pages accessed via a Relevanssi search‑result permalink that contains the highlight query parameter. The requirement to have comment indexing and highlighting enabled limits the attack surface but does not eliminate it; a determined attacker could still inject malicious scripts into comments and reach vulnerable pages through normal search usage.

Generated by OpenCVE AI on October 31, 2026 at 08:27 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Relevanssi WordPress plugin to version 4.28.6 or later.
  • Disable the comment indexing or comment highlighting features to stop the stored XSS vector until the plugin is updated.
  • If upgrading is not possible, consider removing the plugin or replacing it with an alternative search solution.

Generated by OpenCVE AI on October 31, 2026 at 08:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 31 Oct 2026 07:00:00 +0000

Type Values Removed Values Added
Description The Relevanssi – A Better Search plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 4.28.5 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 requires the site to have both the comment indexing and comment highlighting options enabled, and the payload only fires when a visitor reaches a singular page via a Relevanssi search-result permalink carrying the highlight query parameter.
Title Relevanssi <= 4.28.5 - Unauthenticated Stored Cross-Site Scripting via Comment Content via Late Entity Decode
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

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-10-31T06:44:17.433Z

Reserved: 2026-10-26T14:05:00.214Z

Link: CVE-2026-116522

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-31T07:16:35.410

Modified: 2026-10-31T07:16:35.410

Link: CVE-2026-116522

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-31T08:30:13Z

Weaknesses
  • CWE-79

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