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-4774 Overview
CVE-2025-4774 is a Stored Cross-Site Scripting (XSS) vulnerability in the Premium Addons for Elementor plugin for WordPress. The flaw exists in the data-countdown attribute of the Countdown widget and affects all versions up to and including 4.11.8. The plugin fails to sanitize input and escape output properly, enabling script injection through widget attributes.
Authenticated users with Contributor-level access or higher can inject arbitrary JavaScript into pages. The injected scripts execute in the browser of any visitor who views the affected page, including administrators.
Critical Impact
Authenticated contributors can store malicious JavaScript in Countdown widget pages, enabling session theft, account takeover, and content manipulation when administrators or other users view the affected content.
Affected Products
- Leap13 Premium Addons for Elementor (WordPress plugin)
- All versions up to and including 4.11.8
- WordPress sites using the Countdown widget component
Discovery Timeline
- 2025-06-10 - CVE-2025-4774 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-4774
Vulnerability Analysis
The vulnerability is a Stored Cross-Site Scripting flaw tracked under [CWE-79]. The Premium Addons for Elementor plugin ships a Countdown widget whose frontend logic reads the data-countdown HTML attribute to configure the timer. The plugin accepts user-supplied values for this attribute without applying sufficient input sanitization on save or output escaping on render.
A Contributor-level account in WordPress can draft pages containing Elementor widgets. By placing crafted content into the Countdown widget configuration, the attacker causes malicious markup to persist in the stored page content. When any user later loads the page, the browser parses the injected payload and executes attacker-controlled JavaScript in the context of the site origin.
User interaction is required for exploitation because the payload fires when a victim visits the page. Successful exploitation enables session cookie theft, administrative action forgery, redirection to attacker infrastructure, and defacement of trusted content.
Root Cause
The root cause is missing sanitization of attribute values written to the data-countdown property of the Countdown widget and missing output escaping in the frontend rendering path. The frontend JavaScript, located at assets/frontend/js/jquery-countdown.js, processes the attribute value without treating it as untrusted data. See the WordPress Plugin JavaScript File for the vulnerable code path.
Attack Vector
The attack vector is network-based and requires an authenticated account with Contributor privileges or higher. The attacker creates or edits a page that uses the Premium Addons Countdown widget and supplies a malicious payload in the widget configuration. The payload is written to the data-countdown attribute and stored in the post content. The stored script executes whenever any user, including administrators, navigates to the affected page, enabling cross-user privilege abuse through the victim's authenticated session.
Detection Methods for CVE-2025-4774
Indicators of Compromise
- Elementor pages containing Countdown widgets with suspicious or encoded content in the data-countdown attribute.
- Post revisions created by Contributor-level accounts introducing HTML event handlers or <script> fragments.
- Unexpected outbound requests from administrator browsers to unknown domains shortly after viewing plugin-rendered pages.
- WordPress audit log entries showing Contributor accounts editing pages that contain the Premium Addons Countdown widget.
Detection Strategies
- Query the wp_posts table for Countdown widget markup and inspect data-countdown attribute values for angle brackets, javascript: URIs, or event handlers such as onerror= and onload=.
- Deploy a web application firewall rule that inspects saved post content for script tags inside Elementor widget attributes.
- Review the plugin version against 4.11.8 across all WordPress sites and flag any installation at or below that version.
Monitoring Recommendations
- Monitor WordPress role assignments and alert on new Contributor, Author, or Editor accounts.
- Log and review Elementor save actions, correlating author identity with widget types used.
- Capture browser Content Security Policy (CSP) violation reports to identify injected inline scripts attempting to execute.
How to Mitigate CVE-2025-4774
Immediate Actions Required
- Update the Premium Addons for Elementor plugin to a version later than 4.11.8 on every WordPress site.
- Audit existing pages that use the Countdown widget and remove any suspicious data-countdown attribute content.
- Review Contributor, Author, and Editor accounts and revoke access for any unverified users.
- Rotate administrator session cookies and credentials if indicators of exploitation are found.
Patch Information
The vendor addresses the flaw in releases after 4.11.8. Site operators should apply the latest plugin update from the official WordPress plugin repository. Consult the Wordfence Vulnerability Report for current fixed-version details and advisory status.
Workarounds
- Disable or uninstall the Premium Addons for Elementor plugin until the patched version is applied.
- Restrict page editing to trusted roles by removing Contributor-level publishing or editing capabilities temporarily.
- Deploy a Content Security Policy that blocks inline scripts and restricts script sources to known origins.
- Enable a WordPress security plugin or WAF with virtual patching rules covering CVE-2025-4774.
# Configuration example: enforce strict CSP via .htaccess to limit XSS impact
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'"
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
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

