CVE-2026-135267: Relevanssi <= 4.28.9 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'tax_input[post_tag]' Parameter
The Relevanssi – A Better Search plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'name (REST /wp/v2/tags) / taxinput[posttag] (post save)' parameter in all versions up to, and including, 4.28.9 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This is exploitable because WordPress's wpfilterkses stores entity-encoded payloads (e.g., <img src=x onerror=...>) verbatim as literal text in the database, but Relevanssi's relevanssientitydecode() subsequently converts them into live HTML markup before the unescaped return branch of relevanssithetags() splices them into the tag list consumed by the theme.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs an authenticated WordPress account with Contributor-level access or higher. They can submit a malicious payload through tag data when saving a post or through the REST tag endpoint.
When does the malicious script execute?
The payload is stored in the database and executes when a user accesses a page containing the injected tag list. Relevanssi decodes entity-encoded content into HTML and returns it without escaping in the affected tag-rendering path.
Are sites affected if untrusted users cannot create or edit posts?
The described exploitation path requires Contributor-level or higher access. Sites that do not grant such access to untrusted users reduce exposure to this attack path.
How can I check whether my site may be affected?
Check whether the installed Relevanssi version is 4.28.9 or earlier, and review tags associated with posts created or edited by Contributor-or-higher accounts for entity-encoded HTML or unexpected markup. Pay particular attention to tag values that may decode into script-capable HTML.