CVE-2024-12851: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in bdthemes Element Pack Elementor Addons (Header Footer, Template Library, Dynamic Grid, Carousel and Remote Arrows)
CVE-2024-12851 is a stored cross-site scripting (XSS) vulnerability in the bdthemes Element Pack Elementor Addons plugin for WordPress, affecting versions up to 5. 10. 14. The flaw exists in the custom_attributes parameter of the Cookie Consent Widget, 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 or defacement. The vulnerability arises from insufficient input sanitization and output escaping. Exploitation does not require user interaction but does require authenticated access with limited privileges. The CVSS score is 6. 4 (medium severity), reflecting network exploitability with low attack complexity and partial confidentiality and integrity impact. No known public exploits have been reported yet.
AI Analysis
Technical Summary
CVE-2024-12851 is a stored cross-site scripting vulnerability identified in the bdthemes Element Pack Elementor Addons plugin for WordPress, specifically impacting the Header Footer, Template Library, Dynamic Grid, Carousel, and Remote Arrows components. The vulnerability stems from improper neutralization of input (CWE-79) in the custom_attributes parameter of the Cookie Consent Widget, where insufficient sanitization and output escaping allow malicious script injection. Authenticated attackers with Contributor-level privileges or higher can exploit this flaw by injecting arbitrary JavaScript code that is persistently stored and executed in the context of any user visiting the affected page. This can lead to session hijacking, privilege escalation, or defacement. The vulnerability is exploitable remotely over the network without user interaction but requires authenticated access, which lowers the attack complexity. The CVSS 3.1 base score of 6.4 reflects a medium severity with network attack vector, low attack complexity, privileges required, no user interaction, and partial confidentiality and integrity impacts. No patches or official fixes are currently linked, and no known exploits have been observed in the wild. The vulnerability affects all versions up to and including 5.10.14 of the plugin. Given the widespread use of WordPress and Elementor-based plugins, this vulnerability poses a significant risk to websites using this addon for cookie consent and page elements.
Potential Impact
The primary impact of CVE-2024-12851 is the potential for attackers with limited authenticated access to inject persistent malicious scripts into web pages, which execute in the browsers of site visitors. This can lead to session hijacking, theft of sensitive user data, unauthorized actions performed on behalf of users, and website defacement. For organizations, this can result in reputational damage, loss of customer trust, and potential regulatory penalties if user data is compromised. Since the vulnerability requires Contributor-level access, attackers may exploit weak or compromised credentials or leverage other vulnerabilities to gain such access. The scope includes all websites using the affected plugin versions, which may be numerous given the popularity of WordPress and Elementor addons. Although no known exploits are reported yet, the ease of exploitation and the persistent nature of stored XSS make this a credible threat. The vulnerability does not impact availability but compromises confidentiality and integrity, which can have cascading effects on organizational security posture.
Mitigation Recommendations
Organizations should immediately verify if they use the bdthemes Element Pack Elementor Addons plugin, specifically versions up to 5.10.14. Since no official patch links are provided, administrators should monitor bdthemes and WordPress security advisories for updates or patches addressing this issue. In the interim, restrict Contributor-level and higher privileges to trusted users only and enforce strong authentication mechanisms, including multi-factor authentication, to reduce the risk of account compromise. Implement web application firewalls (WAFs) with custom rules to detect and block suspicious payloads targeting the custom_attributes parameter. Review and sanitize all user-generated content inputs rigorously, especially in the Cookie Consent Widget. Consider disabling or replacing the vulnerable widget or plugin components if patching is not immediately possible. Conduct regular security audits and penetration testing focusing on XSS vectors. Educate site administrators and developers on secure coding practices and the risks of stored XSS. Finally, monitor logs and user reports for signs of exploitation or unusual activity related to this vulnerability.
Affected Countries
United States, United Kingdom, Germany, Canada, Australia, India, France, Brazil, Japan, Netherlands, Italy, Spain
CVE-2024-12851: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in bdthemes Element Pack Elementor Addons (Header Footer, Template Library, Dynamic Grid, Carousel and Remote Arrows)
Description
CVE-2024-12851 is a stored cross-site scripting (XSS) vulnerability in the bdthemes Element Pack Elementor Addons plugin for WordPress, affecting versions up to 5. 10. 14. The flaw exists in the custom_attributes parameter of the Cookie Consent Widget, 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 or defacement. The vulnerability arises from insufficient input sanitization and output escaping. Exploitation does not require user interaction but does require authenticated access with limited privileges. The CVSS score is 6. 4 (medium severity), reflecting network exploitability with low attack complexity and partial confidentiality and integrity impact. No known public exploits have been reported yet.
AI-Powered Analysis
Technical Analysis
CVE-2024-12851 is a stored cross-site scripting vulnerability identified in the bdthemes Element Pack Elementor Addons plugin for WordPress, specifically impacting the Header Footer, Template Library, Dynamic Grid, Carousel, and Remote Arrows components. The vulnerability stems from improper neutralization of input (CWE-79) in the custom_attributes parameter of the Cookie Consent Widget, where insufficient sanitization and output escaping allow malicious script injection. Authenticated attackers with Contributor-level privileges or higher can exploit this flaw by injecting arbitrary JavaScript code that is persistently stored and executed in the context of any user visiting the affected page. This can lead to session hijacking, privilege escalation, or defacement. The vulnerability is exploitable remotely over the network without user interaction but requires authenticated access, which lowers the attack complexity. The CVSS 3.1 base score of 6.4 reflects a medium severity with network attack vector, low attack complexity, privileges required, no user interaction, and partial confidentiality and integrity impacts. No patches or official fixes are currently linked, and no known exploits have been observed in the wild. The vulnerability affects all versions up to and including 5.10.14 of the plugin. Given the widespread use of WordPress and Elementor-based plugins, this vulnerability poses a significant risk to websites using this addon for cookie consent and page elements.
Potential Impact
The primary impact of CVE-2024-12851 is the potential for attackers with limited authenticated access to inject persistent malicious scripts into web pages, which execute in the browsers of site visitors. This can lead to session hijacking, theft of sensitive user data, unauthorized actions performed on behalf of users, and website defacement. For organizations, this can result in reputational damage, loss of customer trust, and potential regulatory penalties if user data is compromised. Since the vulnerability requires Contributor-level access, attackers may exploit weak or compromised credentials or leverage other vulnerabilities to gain such access. The scope includes all websites using the affected plugin versions, which may be numerous given the popularity of WordPress and Elementor addons. Although no known exploits are reported yet, the ease of exploitation and the persistent nature of stored XSS make this a credible threat. The vulnerability does not impact availability but compromises confidentiality and integrity, which can have cascading effects on organizational security posture.
Mitigation Recommendations
Organizations should immediately verify if they use the bdthemes Element Pack Elementor Addons plugin, specifically versions up to 5.10.14. Since no official patch links are provided, administrators should monitor bdthemes and WordPress security advisories for updates or patches addressing this issue. In the interim, restrict Contributor-level and higher privileges to trusted users only and enforce strong authentication mechanisms, including multi-factor authentication, to reduce the risk of account compromise. Implement web application firewalls (WAFs) with custom rules to detect and block suspicious payloads targeting the custom_attributes parameter. Review and sanitize all user-generated content inputs rigorously, especially in the Cookie Consent Widget. Consider disabling or replacing the vulnerable widget or plugin components if patching is not immediately possible. Conduct regular security audits and penetration testing focusing on XSS vectors. Educate site administrators and developers on secure coding practices and the risks of stored XSS. Finally, monitor logs and user reports for signs of exploitation or unusual activity related to this vulnerability.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Wordfence
- Date Reserved
- 2024-12-20T15:35:12.718Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 699f6e4bb7ef31ef0b59c66c
Added to database: 2/25/2026, 9:48:59 PM
Last enriched: 2/26/2026, 2:43:45 AM
Last updated: 2/26/2026, 9:29:24 AM
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2026-28138: Deserialization of Untrusted Data in Stylemix uListing
HighCVE-2026-28136: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in VeronaLabs WP SMS
HighCVE-2026-28132: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in villatheme WooCommerce Photo Reviews
HighCVE-2026-28131: Insertion of Sensitive Information Into Sent Data in WPVibes Elementor Addon Elements
HighCVE-2026-28083: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in UX-themes Flatsome
HighActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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.