CVE-2026-135267

Relevanssi <= 4.28.9 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'tax_input[post_tag]' Parameter

Published Nov 26, 2026 CVSS 3.1 · 6.4 Medium EPSS n/a KEV · Not listed
Description
The Relevanssi – A Better Search plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'name (REST /wp/v2/tags) / tax_input[post_tag] (post save)' parameter in all versions up to, and including, 4.28.9 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This is exploitable because WordPress's wp_filter_kses stores entity-encoded payloads (e.g., &lt;img src=x onerror=...&gt;) verbatim as literal text in the database, but Relevanssi's relevanssi_entity_decode() subsequently converts them into live HTML markup before the unescaped return branch of relevanssi_the_tags() splices them into the tag list consumed by the theme.

Analysis

AI-generated

Technical impact

The Relevanssi – A Better Search plugin contains a stored XSS flaw triggered by the ‘tax_input[post_tag]’ field when saving a post. Insufficient input sanitization allows an authenticated user with contributor or higher privileges to inject JavaScript, which WordPress preserves as encoded entities and later decodes before displaying. This can execute on any user who views the affected page, enabling cookie theft, session hijacking, or malicious content injection. The impact therefore touches confidentiality, integrity, and availability by compromising all site users who load the compromised content.

Affected Systems

The vulnerability affects both Relevanssi Premium and the free Relevanssi – A Better Search plugin for WordPress. All public releases up to and including version 4.28.9 are impacted; any install using that or earlier versions is susceptible. No later releases are known to be affected.

Risk and Exploitability

With a CVSS score of 6.4, the risk is moderate but significant because the flaw is stored and user‑contained. The EPSS score is not available, and the issue is not listed in the CISA KEV catalog, implying a smaller current exploitation window. Nevertheless, an attacker only needs authenticated contributor or higher access to inject payloads, and any site visitor will execute the code when viewing the tag‑list output. The lack of network‑level isolation means a single compromised user can affect all others, and the stored nature ensures persistence across visits.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Relevanssi plugin to version 4.29 or later, which removes the vulnerable sanitization path
  • If the plugin cannot be updated immediately, disable or delete the plugin to block the attack vector
  • Restrict or remove contributor privileges for tag editing if not essential, reducing the number of accounts able to inject payloads

Generated by OpenCVE AI on November 26, 2026 at 12:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description The Relevanssi – A Better Search plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'name (REST /wp/v2/tags) / tax_input[post_tag] (post save)' parameter in all versions up to, and including, 4.28.9 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This is exploitable because WordPress's wp_filter_kses stores entity-encoded payloads (e.g., &lt;img src=x onerror=...&gt;) verbatim as literal text in the database, but Relevanssi's relevanssi_entity_decode() subsequently converts them into live HTML markup before the unescaped return branch of relevanssi_the_tags() splices them into the tag list consumed by the theme.
Title Relevanssi <= 4.28.9 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'tax_input[post_tag]' Parameter
Weaknesses CWE-79
References
Metrics cvssV3_1

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

Subscriptions

No data.

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Nov 26, 2026, 11:32 AM
Reserved
Nov 23, 2026, 3:55 PM
Status
Deferred
Published
Nov 26, 2026, 12:17 PM
Modified
Nov 26, 2026, 12:17 PM