CVE-2026-4246

ElementsKit Pro <= 4.10.1 - Unauthenticated Stored Cross-Site Scripting via 's' Parameter

Published Aug 28, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerable ElementsKit Pro plugin exposes a REST endpoint that accepts the ‘s’ search term without proper escaping. Though sanitize_text_field() is called, it fails to encode double quotes. The supplied value is later rendered inside an HTML attribute via sprintf, bypassing esc_attr(), and stored in the ekit_advanced_search_popular_keyword option. An attacker can therefore persist malicious code that is executed whenever a user triggers the no‑results popular‑keywords view in a page that includes the Advanced Search widget. This enables script payloads that can steal cookies, hijack sessions, or modify page content, impacting confidentiality, integrity, and availability of the site. The vulnerability is a typical example of CWE‑79: Improper Neutralization of Input During Web Page Generation.

Affected Systems

ElementsKit Pro for WordPress, version 4.10.1 and earlier, all installations that enable the Advanced Search widget. The flaw exists in the /wp-json/elementskit/v1/advanced-search REST endpoint where permission_callback is set to __return_true, allowing any unauthenticated user to submit search terms. Sites using older ElementsKit Pro versions should be reviewed for deployment of the plugin.

Risk and Exploitability

The CVSS base score is 6.1, indicating medium severity. The EPSS score is <1%, and the issue is not listed in the CISA KEV catalog. The flaw is exploitable without authentication via the public REST API; the attacker only needs to send a crafted request containing an XSS payload. Once stored, the malicious content will be displayed to any visitor who activates the populated keyword view, giving the exploit a wide attack surface across the entire site. The straightforward attack path and lack of privileged prerequisites make this a realistic threat for sites running affected plugin versions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to ElementsKit Pro version 4.10.2 or newer, where input sanitization and escaping are corrected for the ‘s’ parameter in the advanced‑search REST endpoint.
  • If upgrading is not immediately possible, disable or remove the Advanced Search widget from all pages (or block the endpoint via a plugin or wp-config setting) to prevent rendering of stored keywords.
  • Clean any existing malicious entries in the ekit_advanced_search_popular_keyword option using WP‑CLI or the database, ensuring only properly escaped content remains.
  • Add a Content Security Policy header to restrict script execution and reduce impact of potential XSS.

Generated by OpenCVE AI on August 28, 2026 at 15:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Wpmet
Wpmet elementskit
Vendors & Products Wordpress
Wordpress wordpress
Wpmet
Wpmet elementskit
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title ElementsKit Pro <= 4.10.1 - Unauthenticated Stored Cross-Site Scripting via 's' Parameter
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Aug 28, 2026, 3:56 PM
Reserved
Mar 15, 2026, 11:03 PM
Status
Deferred
Published
Aug 28, 2026, 8:16 AM
Modified
Aug 28, 2026, 8:17 PM