Relevanssi stored XSS in comment highlighting
comesio Relevanssi – A Better Search
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| comesio Relevanssi – A Better Search |
| No fix yet |
Original 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.
From the CVE record · Wordfence