CVE-2024-1805: CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in wpbakery WPBakery Visual Composer
CVE-2024-1805 is a stored cross-site scripting (XSS) vulnerability in the WPBakery Visual Composer WordPress plugin affecting all versions up to 7. 5. It arises from improper sanitization and escaping of the button onclick attribute, allowing authenticated users with contributor or higher privileges to inject malicious scripts. These scripts execute whenever any user views the compromised page, potentially leading to session hijacking, privilege escalation, or defacement. The vulnerability has a CVSS score of 6. 4 (medium severity) and does not require user interaction but does require authenticated access. No known exploits are currently reported in the wild. Organizations using WPBakery Visual Composer should prioritize patching or applying mitigations to prevent exploitation, especially those with multiple contributors or public-facing sites. Countries with large WordPress user bases and significant web publishing industries are most at risk.
AI Analysis
Technical Summary
CVE-2024-1805 is a stored cross-site scripting vulnerability classified under CWE-80, affecting the WPBakery Visual Composer plugin for WordPress in all versions up to and including 7.5. The root cause is insufficient input sanitization and output escaping of the button onclick attribute, which allows authenticated users with contributor-level or higher privileges to inject arbitrary JavaScript code into pages. When other users access these pages, the injected scripts execute in their browsers within the context of the vulnerable website. This can lead to a range of attacks including session hijacking, theft of sensitive information, unauthorized actions on behalf of users, or defacement of the website. The vulnerability requires authentication but no user interaction to trigger the payload once injected. The CVSS v3.1 score is 6.4, reflecting network attack vector, low attack complexity, privileges required, no user interaction, and partial impact on confidentiality and integrity. No public exploit code or active exploitation has been reported yet. The vulnerability highlights the importance of robust input validation and output encoding in web applications, especially for plugins that allow content creation by multiple users. WPBakery Visual Composer is widely used in WordPress sites for page building, making this vulnerability relevant to a large number of websites globally.
Potential Impact
The impact of CVE-2024-1805 can be significant for organizations using WPBakery Visual Composer, particularly those with multiple contributors or public-facing websites. Successful exploitation allows an attacker with contributor or higher privileges to inject persistent malicious scripts that execute in the browsers of any user visiting the compromised pages. This can lead to session hijacking, enabling attackers to impersonate users including administrators, data theft, unauthorized actions such as content modification or privilege escalation, and reputational damage due to defacement or malware distribution. Although the attack requires authenticated access, contributor-level permissions are common in collaborative environments, increasing the risk. The vulnerability affects confidentiality and integrity but not availability. Organizations relying on WordPress sites for business operations, e-commerce, or content delivery may face data breaches, loss of customer trust, and compliance issues if exploited. The absence of known exploits in the wild currently reduces immediate risk but does not eliminate the threat, especially as exploit code may emerge.
Mitigation Recommendations
To mitigate CVE-2024-1805, organizations should immediately update WPBakery Visual Composer to a patched version once available. Until a patch is released, administrators should restrict contributor-level access to trusted users only and review existing content for suspicious scripts. Implementing a Web Application Firewall (WAF) with rules to detect and block malicious script injections targeting the button onclick attribute can provide interim protection. Enforce strict input validation and output encoding policies for user-generated content in WordPress. Regularly audit user permissions and monitor logs for unusual activities related to content creation or modification. Educate content contributors about the risks of injecting scripts and enforce security best practices. Additionally, consider disabling or limiting the use of the vulnerable button onclick functionality if feasible. Backup website data frequently to enable recovery in case of compromise. Finally, maintain an incident response plan to quickly address any exploitation attempts.
Affected Countries
United States, India, Germany, United Kingdom, Canada, Australia, France, Brazil, Japan, Netherlands, Italy, Spain
CVE-2024-1805: CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in wpbakery WPBakery Visual Composer
Description
CVE-2024-1805 is a stored cross-site scripting (XSS) vulnerability in the WPBakery Visual Composer WordPress plugin affecting all versions up to 7. 5. It arises from improper sanitization and escaping of the button onclick attribute, allowing authenticated users with contributor or higher privileges to inject malicious scripts. These scripts execute whenever any user views the compromised page, potentially leading to session hijacking, privilege escalation, or defacement. The vulnerability has a CVSS score of 6. 4 (medium severity) and does not require user interaction but does require authenticated access. No known exploits are currently reported in the wild. Organizations using WPBakery Visual Composer should prioritize patching or applying mitigations to prevent exploitation, especially those with multiple contributors or public-facing sites. Countries with large WordPress user bases and significant web publishing industries are most at risk.
AI-Powered Analysis
Technical Analysis
CVE-2024-1805 is a stored cross-site scripting vulnerability classified under CWE-80, affecting the WPBakery Visual Composer plugin for WordPress in all versions up to and including 7.5. The root cause is insufficient input sanitization and output escaping of the button onclick attribute, which allows authenticated users with contributor-level or higher privileges to inject arbitrary JavaScript code into pages. When other users access these pages, the injected scripts execute in their browsers within the context of the vulnerable website. This can lead to a range of attacks including session hijacking, theft of sensitive information, unauthorized actions on behalf of users, or defacement of the website. The vulnerability requires authentication but no user interaction to trigger the payload once injected. The CVSS v3.1 score is 6.4, reflecting network attack vector, low attack complexity, privileges required, no user interaction, and partial impact on confidentiality and integrity. No public exploit code or active exploitation has been reported yet. The vulnerability highlights the importance of robust input validation and output encoding in web applications, especially for plugins that allow content creation by multiple users. WPBakery Visual Composer is widely used in WordPress sites for page building, making this vulnerability relevant to a large number of websites globally.
Potential Impact
The impact of CVE-2024-1805 can be significant for organizations using WPBakery Visual Composer, particularly those with multiple contributors or public-facing websites. Successful exploitation allows an attacker with contributor or higher privileges to inject persistent malicious scripts that execute in the browsers of any user visiting the compromised pages. This can lead to session hijacking, enabling attackers to impersonate users including administrators, data theft, unauthorized actions such as content modification or privilege escalation, and reputational damage due to defacement or malware distribution. Although the attack requires authenticated access, contributor-level permissions are common in collaborative environments, increasing the risk. The vulnerability affects confidentiality and integrity but not availability. Organizations relying on WordPress sites for business operations, e-commerce, or content delivery may face data breaches, loss of customer trust, and compliance issues if exploited. The absence of known exploits in the wild currently reduces immediate risk but does not eliminate the threat, especially as exploit code may emerge.
Mitigation Recommendations
To mitigate CVE-2024-1805, organizations should immediately update WPBakery Visual Composer to a patched version once available. Until a patch is released, administrators should restrict contributor-level access to trusted users only and review existing content for suspicious scripts. Implementing a Web Application Firewall (WAF) with rules to detect and block malicious script injections targeting the button onclick attribute can provide interim protection. Enforce strict input validation and output encoding policies for user-generated content in WordPress. Regularly audit user permissions and monitor logs for unusual activities related to content creation or modification. Educate content contributors about the risks of injecting scripts and enforce security best practices. Additionally, consider disabling or limiting the use of the vulnerable button onclick functionality if feasible. Backup website data frequently to enable recovery in case of compromise. Finally, maintain an incident response plan to quickly address any exploitation attempts.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Wordfence
- Date Reserved
- 2024-02-22T21:01:09.629Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 699f6d40b7ef31ef0b56f627
Added to database: 2/25/2026, 9:44:32 PM
Last enriched: 2/26/2026, 9:53:40 AM
Last updated: 2/26/2026, 11:17:36 AM
Views: 1
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-2025-64999: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Checkmk GmbH Checkmk
HighCVE-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
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.