ElasticPress <= 5.3.6 - Cross-Site Request Forgery via Custom Search Results Preview
- ID
- WPSEC-2026-4631
- Plugin
- ElasticPress (elasticpress)
- Affected
- from 3.1 before 5.3.7
- Remediation
- Update to 5.3.7 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weakness
- CWE-352
- Usage
- Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-12-04
- Attack surface
- ElasticPress on WPSec AttackSurface
- Fix released
- Published
Description
The ElasticPress plugin for WordPress is vulnerable to Cross-Site Request Forgery via the Custom Search Results editor in all versions up to, and including, 5.3.6, due to the search term (the post title) not being encoded when the authenticated preview REST request is built, so it can add arbitrary query parameters (such as rest_route and _method) to that request. Because the title field can be prefilled through the post_title parameter of post-new.php, this makes it possible for unauthenticated attackers to make the administrator perform arbitrary WordPress REST API actions, such as creating a new administrator account. The attacker must trick a site administrator into opening a crafted link, and the Custom Search Results feature must be active.
References
- https://wpsec.com/vuln/WPSEC-2026-4631/
- https://plugins.svn.wordpress.org/elasticpress/tags/5.3.7/
- https://wordpress.org/plugins/elasticpress/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS