Skip to main content

CVE-2024-2665: Elementor Premium Addons XSS Vulnerability

CVE-2024-2665 is a stored XSS vulnerability in Premium Addons for Elementor plugin allowing authenticated attackers to inject malicious scripts. This article covers the technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-2665 Overview

CVE-2024-2665 is a stored cross-site scripting (XSS) vulnerability in the Premium Addons for Elementor plugin for WordPress. The flaw affects all versions up to and including 4.10.27. It originates in the plugin's button widget, which fails to properly sanitize user-supplied attributes and escape output. Authenticated attackers with contributor-level access or higher can inject arbitrary JavaScript into pages. The injected script executes in the browser of any user who views the affected page, including administrators. The issue is tracked as CWE-79.

Critical Impact

Contributor-level attackers can inject persistent JavaScript that executes against site visitors and administrators, enabling session theft and account takeover.

Affected Products

  • Leap13 Premium Addons for Elementor for WordPress — all versions through 4.10.27
  • WordPress sites using the plugin with contributor-level or higher user accounts
  • Elementor-based pages that render the plugin's button widget

Discovery Timeline

  • 2024-04-10 - CVE-2024-2665 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-2665

Vulnerability Analysis

The vulnerability resides in the button widget shipped with Premium Addons for Elementor. The plugin accepts attribute values from authenticated users through the Elementor editor interface. These attributes are stored in the WordPress database and later rendered into page HTML without adequate sanitization or output escaping.

Because contributors can author and save Elementor layouts, they can embed malicious payloads inside button attributes. When an editor, administrator, or site visitor loads the page, the browser parses the injected markup and executes the attacker-controlled script in the context of the site's origin. The scope change in the attack reflects script execution across trust boundaries, including administrator sessions.

Root Cause

The root cause is insufficient input sanitization and missing output escaping on user-supplied attributes passed to the button widget. WordPress provides helper functions such as wp_kses_post(), esc_attr(), and esc_html() for safe rendering, but the vulnerable code paths in the button widget did not consistently apply them before echoing attribute values into HTML.

Attack Vector

Exploitation requires an authenticated account with at least contributor privileges on the target WordPress site. The attacker creates or edits a post that uses the plugin's button widget and supplies a crafted value in a button attribute field that is reflected into page markup. The payload persists in the database as part of the Elementor post content. The script fires whenever the page is rendered, so visits by higher-privileged users such as editors or administrators result in script execution under their session, enabling cookie theft, forced actions, or privilege escalation through administrative endpoints.

No verified exploit code is publicly linked in the CVE record. See the Wordfence Vulnerability Report and the WordPress Plugin Change Log for technical specifics on the fix.

Detection Methods for CVE-2024-2665

Indicators of Compromise

  • Elementor post content containing <script> tags, javascript: URIs, or event handler attributes such as onload, onerror, or onmouseover within button widget data
  • Unexpected outbound requests from administrator browsers to attacker-controlled domains shortly after loading a post edited by a contributor
  • New administrator accounts, plugin installations, or option changes correlating with contributor edits of pages using Premium Addons button widgets

Detection Strategies

  • Query the wp_posts table for Elementor post content containing suspicious strings such as onerror=, onclick=, or <script inside premium-button widget blocks
  • Review plugin version metadata and flag installations of Premium Addons for Elementor at 4.10.27 or earlier
  • Correlate contributor account activity with subsequent administrator page views to identify potential XSS trigger paths

Monitoring Recommendations

  • Enable WordPress audit logging for post edits, user role changes, and plugin or theme modifications
  • Monitor web server logs for anomalous POST requests to admin-ajax.php and Elementor save endpoints originating from contributor accounts
  • Alert on administrator browser sessions that generate outbound requests to new or uncategorized domains following CMS editor activity

How to Mitigate CVE-2024-2665

Immediate Actions Required

  • Update Premium Addons for Elementor to a version later than 4.10.27 on all WordPress sites
  • Audit contributor, author, and editor accounts and remove or disable any that are unused or untrusted
  • Review existing Elementor pages built with the button widget for injected scripts or suspicious attribute values and sanitize or revert them

Patch Information

The vendor addressed the flaw in a release following 4.10.27. The commit referenced in the WordPress Plugin Change Log adds sanitization and escaping on the affected button attributes. Administrators should apply the update through the WordPress plugin dashboard or by replacing the plugin files from the official repository.

Workarounds

  • Restrict contributor-level and above access to trusted users only until the plugin is updated
  • Disable the Premium Addons button widget through the plugin's module settings if the update cannot be applied immediately
  • Deploy a web application firewall rule to block requests containing script tags or event handler attributes targeting Elementor save endpoints

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.