CVE-2026-97641: Relevanssi <= 4.28.3 - Unauthenticated Stored Cross-Site Scripting via Comment Content
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.
Affected Software
Event History
Frequently Asked Questions
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.
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.
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.
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.