CVE-2026-4246
Description
The ElementsKit Pro plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 's' parameter of the Advanced Search REST endpoint in all versions up to, and including, 4.10.1 due to insufficient input sanitization and output escaping. The REST endpoint at /wp-json/elementskit/v1/advanced-search uses permission_callback set to __return_true, allowing unauthenticated access. Search terms are stored in the ekit_advanced_search_popular_keyword WordPress option via update_option(). While sanitize_text_field() is applied, it does not encode double quotes, and the stored keywords are rendered in HTML attributes via sprintf without esc_attr(), allowing attribute injection. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user triggers the "no results" popular keywords view on pages using the Advanced Search widget.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/a40e7a88-11f2-4fa8-856b-bda3ebcbae56?source=cve
- https://wpmet.com/plugin/elementskit/
- https://plugins.trac.wordpress.org/browser/elementskit/trunk/widgets/advanced-search/advanced-search-result.php#L174
- https://plugins.trac.wordpress.org/browser/elementskit/trunk/widgets/advanced-search/advanced-search-handler.php#L38
- https://plugins.trac.wordpress.org/browser/elementskit/trunk/widgets/advanced-search/advanced-search-result.php#L91
- https://wpmet.com/plugin/elementskit/roadmaps/
CWEs
CWE-79
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.