{
 "id": "WPSEC-2026-4631",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4631/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4631/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4631/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4631.json",
 "title": "ElasticPress <= 5.3.6 - Cross-Site Request Forgery via Custom Search Results Preview",
 "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.",
 "plugin": {
  "slug": "elasticpress",
  "name": "ElasticPress",
  "full_name": "ElasticPress",
  "wordpress_org": "https://wordpress.org/plugins/elasticpress/",
  "advisories_url": "https://wpsec.com/vuln/plugin/elasticpress/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/elasticpress"
 },
 "type": "CSRF",
 "cwe": [
  "CWE-352"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 8.8,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
  "severity": "High"
 },
 "affected": {
  "ranges": [
   {
    "from": "3.1",
    "from_inclusive": true,
    "to": "5.3.7",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 3.1 before 5.3.7"
  ]
 },
 "introduced_in": "3.1",
 "fixed_in": "5.3.7",
 "remediation": "Update to 5.3.7 or later.",
 "fix_released": "2026-12-03T15:46:11+00:00",
 "published": "2026-12-04T15:47:21+00:00",
 "updated": "2026-12-04T09:16:32.722344+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4631/",
  "https://plugins.svn.wordpress.org/elasticpress/tags/5.3.7/",
  "https://wordpress.org/plugins/elasticpress/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/elasticpress",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Medium",
  "as_of": "2026-12-04"
 }
}