# ElasticPress <= 5.3.6 - Unauthenticated Sensitive Information Exposure via Related Posts REST API Endpoint

- **ID:** WPSEC-2026-4629
- **Plugin:** ElasticPress (`elasticpress`), https://wordpress.org/plugins/elasticpress/
- **Affected versions:** from 3.2 before 5.3.7
- **Fixed in:** 5.3.7 (Update to 5.3.7 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)
- **Weakness:** CWE-862
- **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-4629/

## Description

The ElasticPress plugin for WordPress is vulnerable to Sensitive Information Exposure via the Related Posts REST API endpoints (elasticpress/v1/related-posts/<id> and wp/v2/posts/<id>/related) in all versions up to, and including, 5.3.6, due to a permission callback that always allowed access and no check that the requested post is viewable. This makes it possible for unauthenticated attackers to request related posts for any post ID. When Protected Content indexes drafts and private posts, this reveals that those posts exist and which published content they resemble.

## References

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

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

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.
