Description
The King Addons for Elementor plugin for WordPress is vulnerable to multiple Contributor+ DOM-Based Stored Cross-Site Scripting vulnerabilities in all versions up to, and including, 51.1.38. This is due to insufficient input sanitization and output escaping across multiple widgets and features. The plugin uses esc_attr() and esc_url() within JavaScript inline event handlers (onclick attributes), which allows HTML entities to be decoded by the DOM, enabling attackers to break out of the JavaScript context. Additionally, several JavaScript files use unsafe DOM manipulation methods (template literals, .html(), and window.location.href with unvalidated URLs) with user-controlled data. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts via Elementor widget settings that execute when a user accesses the injected page or when an administrator previews the page in Elementor's editor. The vulnerability was partially patched in version 5.1.51.
Published: 2026-04-01
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Cross‑site scripting via stored JavaScript in widget settings
Action: Immediate Patch
AI Analysis

Impact

The vulnerability allows authenticated users with Contributor level or higher to insert arbitrary JavaScript into widget or feature settings by exploiting inadequate input sanitization and improper output escaping. The script is stored and later executed when a visitor loads the page or an administrator previews the page in Elementor. This leads to script execution in the victim’s browser context, permitting cookie theft, session hijacking, data exfiltration, or defacement. The weakness is a DOM‑based stored XSS.

Affected Systems

All releases of the King Addons for Elementor plugin up to and including version 51.1.38, which powers more than 80 Elementor widgets, 4,000+ Elementor templates, WooCommerce integrations, Mega Menu, and Popup Builder. The problem arises in the plugin’s JavaScript files and widget settings.

Risk and Exploitability

With a CVSS score of 6.4 the severity is moderate, and the vulnerability is not listed in the CISA KEV catalog. The description indicates that exploitation requires an authenticated Contributor or higher. An attacker creates or modifies a widget’s settings with malicious content, saving it so that the script is rendered in the page source. When a user loads that page, or an admin previews it, the script executes in the user’s browser, producing a typical XSS exploitation scenario. No EPSS data is available, but the requirement for authenticated access reduces the likelihood of widespread exploitation.

Generated by OpenCVE AI on April 2, 2026 at 02:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade King Addons for Elementor to the latest version (any release newer than 51.1.38).
  • If an immediate upgrade is not possible, disable or remove the affected widgets and features or prevent Contributor‑level users from editing them.
  • Apply a Content Security Policy that restricts inline scripts and JavaScript origins to mitigate XSS impact.
  • Audit the site for injected scripts in widget settings and remove any malicious code.

Generated by OpenCVE AI on April 2, 2026 at 02:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 02 Apr 2026 20:30:00 +0000

Type Values Removed Values Added
First Time appeared Kingaddons
Kingaddons king Addons For Elementor
Wordpress
Wordpress wordpress
Vendors & Products Kingaddons
Kingaddons king Addons For Elementor
Wordpress
Wordpress wordpress

Wed, 01 Apr 2026 23:45:00 +0000

Type Values Removed Values Added
Description The King Addons for Elementor plugin for WordPress is vulnerable to multiple Contributor+ DOM-Based Stored Cross-Site Scripting vulnerabilities in all versions up to, and including, 51.1.38. This is due to insufficient input sanitization and output escaping across multiple widgets and features. The plugin uses esc_attr() and esc_url() within JavaScript inline event handlers (onclick attributes), which allows HTML entities to be decoded by the DOM, enabling attackers to break out of the JavaScript context. Additionally, several JavaScript files use unsafe DOM manipulation methods (template literals, .html(), and window.location.href with unvalidated URLs) with user-controlled data. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts via Elementor widget settings that execute when a user accesses the injected page or when an administrator previews the page in Elementor's editor. The vulnerability was partially patched in version 5.1.51.
Title King Addons for Elementor <= 51.1.38 - Authenticated (Contributor+) DOM-Based Stored Cross-Site Scripting via Multiple Widgets
Weaknesses CWE-79
References
Metrics cvssV3_1

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

ssvc

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


Subscriptions

Kingaddons King Addons For Elementor
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T17:10:07.525Z

Reserved: 2025-11-21T23:23:33.043Z

Link: CVE-2025-13535

cve-icon Vulnrichment

Updated: 2026-04-01T19:03:53.583Z

cve-icon NVD

Status : Deferred

Published: 2026-04-01T15:16:21.743

Modified: 2026-04-24T18:12:06.580

Link: CVE-2025-13535

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-02T20:17:30Z

Weaknesses