CVE-2025-13535

King Addons for Elementor <= 51.1.38 - Authenticated (Contributor+) DOM-Based Stored Cross-Site Scripting via Multiple Widgets

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

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
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
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 8, 2026, 5:10 PM
Reserved
Nov 21, 2025, 11:23 PM
Status
Deferred
Published
Apr 1, 2026, 3:16 PM
Modified
Oct 7, 2026, 9:10 AM