CVE-2026-19985
The Relevanssi – A Better Search plugin for WordPress is vulnerable …
The Relevanssi – A Better Search plugin for WordPress is vulnerable to Reflected Cross-Site Scripting in versions up to, and including, 4.28.1 via the 's', 'post_types', and 'orderby' request parameters. This is due to insufficient input sanitization and output escaping in the relevanssi_debug_array() function in lib/debug.php, which dumps user-supplied query variables through print_r() inside a <pre> block without HTML escaping. The debug path is enabled by supplying the relevanssi_debug=on request parameter when the administrator has previously enabled the 'Debugging mode' setting; the gate itself is a configuration check with no capability, nonce, or logged-in check (the vendor explicitly suppresses nonce verification on that line). This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a specially crafted link.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- plugins.trac.wordpress.org/browser/relevanssi/tags/4.27.2/lib/debug.php#L27
- plugins.trac.wordpress.org/browser/relevanssi/tags/4.27.2/lib/debug.php#L68
- plugins.trac.wordpress.org/browser/relevanssi/tags/4.27.2/lib/search.php#L132
- plugins.trac.wordpress.org/browser/relevanssi/tags/4.27.2/lib/search.php#L143
- plugins.trac.wordpress.org/browser/relevanssi/tags/4.27.2/lib/search.php#L562
- plugins.trac.wordpress.org/browser/relevanssi/tags/4.28.1/lib/debug.php#L27
- plugins.trac.wordpress.org/browser/relevanssi/tags/4.28.1/lib/debug.php#L68
- plugins.trac.wordpress.org/browser/relevanssi/tags/4.28.1/lib/search.php#L132
- nvd.nist.gov/vuln/detail/CVE-2026-19985
- cve.org/CVERecord?id=CVE-2026-19985
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.