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-4045: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in optinmonster Popup Builder by OptinMonster – WordPress Popups for Optins, Email Newsletters and Lead Generation

0
Medium
VulnerabilityCVE-2024-4045cvecve-2024-4045cwe-79
Published: Sat May 25 2024 (05/25/2024, 05:36:43 UTC)
Source: CVE Database V5
Vendor/Project: optinmonster
Product: Popup Builder by OptinMonster – WordPress Popups for Optins, Email Newsletters and Lead Generation

Description

CVE-2024-4045 is a stored cross-site scripting (XSS) vulnerability in the Popup Builder by OptinMonster WordPress plugin, affecting all versions up to 2. 16. 1. The flaw arises from improper sanitization and escaping of the 'campaign_id' parameter, allowing authenticated users with contributor-level permissions or higher to inject malicious scripts. These scripts execute whenever any user accesses the compromised page, potentially leading to session hijacking, defacement, or other malicious actions. The vulnerability has a CVSS score of 6. 4 (medium severity) and does not require user interaction for exploitation. No known exploits are currently reported in the wild. Organizations using this plugin should prioritize patching or applying mitigations to prevent exploitation. The threat primarily affects websites running WordPress with this plugin installed, especially in countries with high WordPress adoption and significant use of OptinMonster services.

AI-Powered Analysis

AILast updated: 02/26/2026, 00:27:39 UTC

Technical Analysis

CVE-2024-4045 is a stored cross-site scripting vulnerability classified under CWE-79, found in the Popup Builder by OptinMonster plugin for WordPress, which is widely used for creating popups to capture opt-ins, email newsletters, and lead generation. The vulnerability exists in all versions up to and including 2.16.1 due to insufficient input sanitization and output escaping of the 'campaign_id' parameter. Authenticated attackers with contributor-level permissions or higher can exploit this flaw by injecting arbitrary JavaScript code into pages generated by the plugin. Because the malicious script is stored, it executes every time a user visits the affected page, potentially compromising user sessions, stealing cookies, or performing unauthorized actions on behalf of users. The vulnerability does not require user interaction beyond visiting the infected page and has a CVSS 3.1 base score of 6.4, reflecting its medium severity. The attack vector is network-based, with low attack complexity and privileges required, but no user interaction needed. Although no known exploits have been reported in the wild, the vulnerability poses a significant risk to WordPress sites using this plugin, especially those allowing contributor-level access to untrusted users. The scope is limited to sites with the vulnerable plugin installed, but the impact on confidentiality and integrity can be substantial if exploited.

Potential Impact

The primary impact of CVE-2024-4045 is the compromise of confidentiality and integrity on affected WordPress sites. Attackers can inject malicious scripts that execute in the context of users visiting the infected pages, potentially leading to session hijacking, credential theft, defacement, or unauthorized actions performed with the victim's privileges. This can erode user trust, damage brand reputation, and lead to data breaches. Since the vulnerability requires contributor-level access, insider threats or compromised accounts pose a significant risk. The availability impact is minimal, but the overall risk to site security and user data is considerable. Organizations relying on the OptinMonster Popup Builder for lead generation and email marketing could face disruptions in their marketing operations and legal consequences if user data is compromised. The vulnerability also increases the attack surface for further exploitation, such as pivoting to more severe attacks or malware distribution.

Mitigation Recommendations

To mitigate CVE-2024-4045, organizations should immediately update the Popup Builder by OptinMonster plugin to a version that addresses this vulnerability once available. Until a patch is released, restrict contributor-level permissions to trusted users only and audit existing contributor accounts for suspicious activity. Implement web application firewalls (WAFs) with rules to detect and block suspicious payloads targeting the 'campaign_id' parameter. Employ Content Security Policy (CSP) headers to limit the execution of unauthorized scripts. Regularly monitor logs for unusual behavior or script injections related to this plugin. Additionally, conduct security awareness training for users with elevated permissions to prevent social engineering attacks that could lead to account compromise. Finally, consider isolating or sandboxing critical WordPress instances to reduce the blast radius of potential exploitation.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2024-04-22T23:26:59.374Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6b80b7ef31ef0b556058

Added to database: 2/25/2026, 9:37:04 PM

Last enriched: 2/26/2026, 12:27:39 AM

Last updated: 2/26/2026, 11:24:05 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