CVE-2026-116518: ElasticPress <= 5.3.5 - Unauthenticated Stored Cross-Site Scripting via 'orderby' Parameter
The ElasticPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'orderby' parameter in all versions up to, and including, 5.3.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. The injected payload is stored in the epquerylog transient for up to 24 hours after a single unauthenticated frontend GET request, and only fires when an administrator subsequently opens the Status Report page and expands the Failed Queries panel.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
WordPress sites using ElasticPress version 5.3.5 or earlier are exposed. An attacker does not need authentication and can trigger the injection through a frontend GET request.
When does the injected script execute?
The payload is stored in the ep_query_log transient for up to 24 hours. It executes only when an administrator opens the Status Report page and expands the Failed Queries panel.
What attacker interaction is required?
The attacker only needs to send a single unauthenticated frontend GET request containing a malicious orderby parameter. No administrator action is needed to store the payload, but an administrator must later view the affected Failed Queries panel for it to execute.
How can administrators determine whether they may be affected?
Check whether ElasticPress is version 5.3.5 or earlier, and review the Status Report's Failed Queries panel. Relevant injected entries are retained in the ep_query_log transient for up to 24 hours after the triggering request.