CVE-2026-97641: Relevanssi <= 4.28.3 - Unauthenticated Stored Cross-Site Scripting via Comment Content

Published Oct 2, 2026
·
Updated

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.

Affected Software

1 affected component
Relevanssi Relevanssi – A Better Search<=4.28.3

Event History

Oct 2, 2026
CVE Published
via MITRE·07:39 AM
Data Sourced
via MITRE·07:39 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

When is this issue exploitable?

Exploitation requires the administrator to configure a non-empty value for the "Allowable tags in excerpts" setting. The configured list must include an allowable tag whose name is a prefix of the attacker-injected tag name; the default example value, "<p><a><strong>", can meet this condition.

2

Does an attacker need an account or user interaction to inject the payload?

No. An unauthenticated attacker can inject the stored script through comment content, with no account or prior user interaction required for injection.

3

Who is affected when a payload has been injected?

The injected script executes when a user accesses the page containing the stored payload. The issue can affect confidentiality and integrity in the context of the viewing user.

4

How can administrators determine whether their configuration is exposed?

Check the Relevanssi "Allowable tags in excerpts" setting. The described exploit condition exists only if it is non-empty and contains an allowed tag name that can prefix an injected tag name.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203