Skip to main content

CVE-2025-1054: UiCore Elements Plugin XSS Vulnerability

CVE-2025-1054 is a stored XSS vulnerability in the UiCore Elements WordPress plugin affecting multiple Elementor widgets. Attackers with Contributor access can inject malicious scripts. This article covers technical details, affected versions, impact assessment, 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-2025-1054 Overview

CVE-2025-1054 is a Stored Cross-Site Scripting (XSS) vulnerability in the UiCore Elements – Free Elementor widgets and templates plugin for WordPress. The flaw affects all versions up to and including 1.0.16. It stems from insufficient input sanitization and output escaping in the UI Counter, UI Icon Box, UI Testimonial Slider, UI Testimonial Grid, and UI Testimonial Carousel widgets. Authenticated users with Contributor-level access or higher can inject arbitrary JavaScript into pages. The payload executes in the browser of any visitor who loads the affected page, enabling session theft, account takeover, and redirection to malicious resources.

Critical Impact

Contributor-level attackers can persist JavaScript in WordPress pages that executes against every visitor, including administrators, enabling full site compromise through session hijacking.

Affected Products

  • UiCore Elements – Free Elementor widgets and templates plugin for WordPress
  • All versions up to and including 1.0.16
  • Widgets impacted: UI Counter, UI Icon Box, UI Testimonial Slider, UI Testimonial Grid, UI Testimonial Carousel

Discovery Timeline

  • 2025-04-23 - CVE-2025-1054 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-1054

Vulnerability Analysis

The vulnerability is a Stored Cross-Site Scripting flaw classified under CWE-79. The affected Elementor widgets accept user-supplied attributes without properly sanitizing input or escaping output when rendering content to the page. An attacker with Contributor privileges can craft widget configurations that include JavaScript event handlers or <script> tags. When WordPress renders the page containing these widgets, the browser executes the injected code in the context of the site's origin.

Because the payload is stored in the WordPress database, every subsequent page view triggers execution. Administrators who preview or edit the attacker's content expose their session cookies and administrative actions to the injected script. This creates a privilege escalation path from Contributor to Administrator.

Root Cause

The root cause is missing or inadequate sanitization on widget input fields combined with unescaped output when the widgets emit HTML. WordPress functions such as wp_kses_post, esc_attr, and esc_html are either absent or applied incorrectly in the vulnerable widget render paths. The patch addressed in WordPress plugin changeset 3253371 introduces proper escaping before output.

Attack Vector

The attack requires authenticated access at the Contributor role or above. An attacker with such credentials edits a post or page, inserts one of the vulnerable widgets, and places a JavaScript payload into an attribute that is later rendered without escaping. Once the content is published or previewed, the payload executes in any browser that loads the page. See the Wordfence vulnerability report for additional analysis.

Detection Methods for CVE-2025-1054

Indicators of Compromise

  • Unexpected <script> tags, javascript: URIs, or on* event handlers persisted inside Elementor widget data in the wp_postmeta table
  • WordPress posts or pages authored by Contributor-level accounts that embed UiCore widgets with unusual attribute values
  • Outbound browser requests from site visitors to unfamiliar domains sourced from rendered WordPress pages

Detection Strategies

  • Audit wp_postmeta entries containing _elementor_data for suspicious strings such as <script, onerror=, onload=, or javascript:
  • Review all content created or modified by Contributor and Author accounts since the plugin was installed
  • Correlate web server access logs with pages that embed the affected UiCore widgets to identify anomalous rendering patterns

Monitoring Recommendations

  • Alert on new post creation or edits by low-privileged accounts that include the UiCore widget types
  • Monitor Content Security Policy (CSP) violation reports for inline script execution attempts on WordPress pages
  • Track administrator session activity for anomalous actions following previews of Contributor-submitted content

How to Mitigate CVE-2025-1054

Immediate Actions Required

  • Update the UiCore Elements plugin to a version later than 1.0.16 that includes the fix from changeset 3253371
  • Review all pages and posts for malicious payloads injected through the affected widgets and remove them
  • Audit WordPress user roles and revoke Contributor or higher privileges from untrusted accounts

Patch Information

The vendor addressed the vulnerability in WordPress plugin changeset 3253371, which adds proper input sanitization and output escaping to the UI Counter, UI Icon Box, and three Testimonial widgets. Site operators should install the patched release from the WordPress plugin repository.

Workarounds

  • Deactivate the UiCore Elements plugin until the patched version can be installed
  • Restrict the Contributor role from using Elementor or the affected widgets through a role management plugin
  • Deploy a Web Application Firewall (WAF) rule that blocks script tags and event handler attributes in post content submissions

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.