Skip to main content

CVE-2025-2330: Elementor WidgetKit XSS Vulnerability

CVE-2025-2330 is a stored XSS vulnerability in All-in-One Addons for Elementor WidgetKit plugin that lets authenticated attackers inject malicious scripts. This article covers technical details, affected versions, and mitigation.

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-2025-2330 Overview

CVE-2025-2330 is a Stored Cross-Site Scripting (XSS) vulnerability in the All-in-One Addons for Elementor – WidgetKit plugin for WordPress. The flaw affects all versions up to and including 2.5.4 and resides in the plugin's button+modal widget. Insufficient input sanitization and output escaping on user-supplied attributes allow authenticated attackers with contributor-level access or higher to inject arbitrary JavaScript into pages. The injected scripts execute in the browser of any visitor who views the affected page. The vulnerability is tracked under CWE-79.

Critical Impact

Contributor-level accounts can plant persistent JavaScript that executes against site visitors and administrators, enabling session theft, redirects, and administrative action takeover.

Affected Products

  • Themesgrove All-in-One Addons for Elementor (WidgetKit for Elementor) versions ≤ 2.5.4
  • WordPress sites running the plugin with contributor-level users or above
  • Fixed in version 2.5.5

Discovery Timeline

  • 2025-07-02 - CVE-2025-2330 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-2330

Vulnerability Analysis

The vulnerability lives in the button-modal widget shipped by the WidgetKit for Elementor plugin. The widget renders user-controlled attributes directly into page markup through elements/button-modal/template/view.php without applying appropriate sanitization or escaping functions. When a contributor edits a page that contains the widget, they can supply attribute values containing HTML or JavaScript payloads. The plugin stores those values and later emits them into the DOM when the page is rendered, causing the injected script to execute in the context of the site's origin. Exploitation requires an authenticated session and user interaction (a visitor loading the page), and the scope changes because scripts execute in the browser of a different user.

Root Cause

The root cause is missing output escaping in the widget's view.php template. The plugin trusts attribute values stored by Elementor and prints them without passing them through WordPress escaping functions such as esc_attr(), esc_html(), or wp_kses(). The upstream fix in changeset 3283765 adds proper escaping on the attributes that previously flowed directly into the rendered output.

Attack Vector

An attacker with a contributor, author, or editor account authors a post or page, adds the button+modal widget, and places a JavaScript payload inside one of the unsanitized attributes. The post is submitted or published through normal editorial workflows. When an administrator previews the post or a visitor loads the published page, the browser parses the injected script and executes it under the site's origin. Attackers can use this access to hijack administrator sessions, create new privileged users, exfiltrate cookies, or pivot to further plugin or theme compromises.

No verified public proof-of-concept is available. See the Wordfence Vulnerability Report and the vulnerable template source for technical references.

Detection Methods for CVE-2025-2330

Indicators of Compromise

  • Posts or pages containing button-modal widget attributes with <script> tags, javascript: URLs, or inline event handlers such as onerror, onload, or onclick.
  • Unexpected administrator account creation or role changes shortly after a contributor publishes content containing the widget.
  • Outbound requests from administrator browsers to unfamiliar domains following page previews.

Detection Strategies

  • Query the WordPress wp_postmeta table for Elementor data containing the button-modal widget and inspect stored attribute values for script content.
  • Review web server access logs for POST requests to /wp-admin/admin-ajax.php or post.php from contributor accounts introducing widget markup.
  • Monitor Content Security Policy (CSP) violation reports for inline script executions originating from authored content pages.

Monitoring Recommendations

  • Audit low-privilege accounts (contributor, author) for recent content containing WidgetKit widgets.
  • Alert on changes to the plugin's PHP files and track installed plugin versions against the fixed release 2.5.5.
  • Correlate browser-side telemetry from administrator workstations with WordPress editorial activity to spot session abuse following page previews.

How to Mitigate CVE-2025-2330

Immediate Actions Required

  • Update the All-in-One Addons for Elementor – WidgetKit plugin to version 2.5.5 or later on all WordPress sites.
  • Audit existing posts and pages that use the button+modal widget and remove any attribute values containing script content.
  • Review contributor, author, and editor accounts, disable unused accounts, and reset credentials for any suspicious users.

Patch Information

The vendor fixed the issue in version 2.5.5 via WordPress Plugin Changeset 3283765. The patch adds proper escaping to the button-modal template so user-supplied attributes are no longer written to the DOM without sanitization. Site operators should apply the update through the WordPress plugin manager or via WP-CLI.

Workarounds

  • Deactivate the WidgetKit for Elementor plugin until the patched version is deployed.
  • Restrict the ability to publish or edit content to trusted administrator and editor accounts only.
  • Deploy a web application firewall (WAF) rule to block requests that submit <script> tags or event handlers to Elementor widget attributes.
bash
# Update the plugin using WP-CLI
wp plugin update widgetkit-for-elementor --version=2.5.5

# Verify installed version
wp plugin get widgetkit-for-elementor --field=version

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.