# ElasticPress <= 5.3.6 - Authenticated (Author+) Stored Cross-Site Scripting via Post Title in Autosuggest

- **ID:** WPSEC-2026-4630
- **Plugin:** ElasticPress (`elasticpress`), https://wordpress.org/plugins/elasticpress/
- **Affected versions:** from 2.4 before 5.3.7
- **Fixed in:** 5.3.7 (Update to 5.3.7 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-12-04)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/elasticpress
- **Fix released:** 2026-12-03
- **Published:** 2026-12-04
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4630/

## Description

The ElasticPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via post titles shown in Autosuggest results in all versions up to, and including, 5.3.6, due to insufficient output escaping. Indexed post titles were inserted into the page with innerHTML and only their double quotes were replaced, which turns quoted attributes in title markup into unquoted ones. Search-term highlighting was also applied to the raw markup. This makes it possible for authenticated attackers, with author-level access and above, to inject arbitrary web scripts in published post titles that execute when a visitor's search shows the post in Autosuggest.

## References

- https://wpsec.com/vuln/WPSEC-2026-4630/
- https://plugins.svn.wordpress.org/elasticpress/tags/5.3.7/
- https://wordpress.org/plugins/elasticpress/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4630/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
