Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-5189: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wpdevteam Essential Addons for Elementor – Best Elementor Templates, Widgets, Kits & WooCommerce Builders

0
Medium
VulnerabilityCVE-2024-5189cvecve-2024-5189cwe-79
Published: Tue Jun 11 2024 (06/11/2024, 13:54:00 UTC)
Source: CVE Database V5
Vendor/Project: wpdevteam
Product: Essential Addons for Elementor – Best Elementor Templates, Widgets, Kits & WooCommerce Builders

Description

CVE-2024-5189 is a stored cross-site scripting (XSS) vulnerability in the WordPress plugin Essential Addons for Elementor up to version 5. 9. 23. It arises from improper input sanitization and output escaping of the 'custom_js' parameter, allowing authenticated users with Contributor-level access or higher to inject malicious scripts. These scripts execute whenever any user views the compromised page, potentially leading to session hijacking, defacement, or other malicious actions. The vulnerability has a CVSS score of 6. 4, indicating medium severity, with no known exploits in the wild as of now. Exploitation requires authentication but no user interaction beyond viewing the injected page. Organizations using this plugin should prioritize patching or applying mitigations to prevent abuse. The threat primarily affects WordPress sites globally, especially those with Contributor-level user roles enabled.

AI-Powered Analysis

AILast updated: 02/26/2026, 02:25:30 UTC

Technical Analysis

CVE-2024-5189 is a stored cross-site scripting (XSS) vulnerability identified in the WordPress plugin Essential Addons for Elementor – Best Elementor Templates, Widgets, Kits & WooCommerce Builders, affecting all versions up to and including 5.9.23. The root cause is insufficient sanitization and escaping of the 'custom_js' parameter, which is used during web page generation. Authenticated attackers with Contributor-level privileges or higher can exploit this flaw by injecting arbitrary JavaScript code into pages. Because the malicious script is stored persistently, it executes every time a user accesses the infected page, potentially compromising user sessions, stealing cookies, or performing actions on behalf of the user. The vulnerability does not require user interaction beyond page access and has a CVSS 3.1 base score of 6.4, reflecting medium severity. The attack vector is network-based with low attack complexity, requiring privileges but no UI interaction. The scope is changed (S:C) because the vulnerability affects resources beyond the attacker’s privileges, potentially impacting other users. No public exploits are known yet, but the widespread use of the plugin and the commonality of Contributor roles in WordPress sites make this a significant risk. The vulnerability is categorized under CWE-79, which relates to improper neutralization of input during web page generation, a classic XSS issue. No official patches or updates are linked yet, so mitigation relies on access control and input validation measures.

Potential Impact

This vulnerability can lead to significant security risks for organizations running WordPress sites with the affected plugin. Attackers with Contributor-level access can inject malicious scripts that execute in the context of other users, potentially leading to session hijacking, theft of sensitive information such as cookies or credentials, unauthorized actions performed on behalf of users, and defacement or manipulation of website content. Since the vulnerability affects the integrity and confidentiality of user data and site content, it undermines trust and can result in reputational damage. The availability impact is minimal as the vulnerability does not cause denial of service. However, the scope change means that attackers can escalate their influence beyond their assigned privileges, increasing the threat severity. Organizations with multiple contributors or editors are at higher risk. The widespread use of Elementor and its addons globally means many websites could be exposed, including e-commerce, corporate, and informational sites. Exploitation could also facilitate further attacks such as phishing or malware distribution through compromised pages.

Mitigation Recommendations

Organizations should immediately review user roles and restrict Contributor-level access to trusted users only, minimizing the risk of malicious script injection. Until an official patch is released, consider disabling or removing the Essential Addons for Elementor plugin if feasible. Implement web application firewall (WAF) rules to detect and block suspicious input patterns targeting the 'custom_js' parameter. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts on affected sites. Conduct thorough input validation and output encoding on any user-supplied data within custom code or theme files to reduce XSS risks. Monitor site logs for unusual activity or script injections. Educate site administrators and contributors about the risks of injecting custom JavaScript. Once a patch is available, prioritize prompt updating of the plugin to the fixed version. Additionally, consider implementing multi-factor authentication (MFA) for all users with elevated privileges to reduce the risk of account compromise.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2024-05-21T22:14:00.714Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6be0b7ef31ef0b55baae

Added to database: 2/25/2026, 9:38:40 PM

Last enriched: 2/26/2026, 2:25:30 AM

Last updated: 2/26/2026, 9:40:43 AM

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats