Vulnerability in Relevanssi – A Better Search — CVE-2026-116522
What to do now
Update Relevanssi – A Better Search to 4.28.6 or later.
Affected versions
- Everything up to and including 4.28.5
Affected: Relevanssi – A Better Search (plugin, relevanssi)
What the vulnerability is
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.