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-0662: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in colorlibplugins FancyBox for WordPress

0
Medium
VulnerabilityCVE-2024-0662cvecve-2024-0662cwe-79
Published: Tue Apr 09 2024 (04/09/2024, 18:58:49 UTC)
Source: CVE Database V5
Vendor/Project: colorlibplugins
Product: FancyBox for WordPress

Description

The FancyBox for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in versions 3.0.2 to 3.3.3 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/26/2026, 15:15:52 UTC

Technical Analysis

CVE-2024-0662 is a stored cross-site scripting vulnerability identified in the FancyBox for WordPress plugin, specifically affecting versions 3.0.2 through 3.3.3. The root cause is insufficient sanitization and escaping of input data within the plugin's administrative settings, which allows attackers with administrator-level privileges to inject arbitrary JavaScript code into pages. This vulnerability is exploitable only in multisite WordPress installations or where the unfiltered_html capability is disabled, restricting the attack surface. Once injected, the malicious scripts execute in the context of any user who views the compromised page, potentially leading to session hijacking, privilege escalation, or data theft. The vulnerability requires authenticated access with high privileges, and no user interaction is needed for the payload to execute. The CVSS 3.1 base score is 4.4, reflecting a medium severity due to the high attack complexity and limited scope. No public exploits have been reported to date, but the vulnerability poses a risk to organizations relying on this plugin in multisite environments. The issue highlights the importance of proper input validation and output encoding in WordPress plugins to prevent cross-site scripting attacks.

Potential Impact

The primary impact of CVE-2024-0662 is the potential compromise of user confidentiality and integrity within affected WordPress multisite environments. An attacker with administrator privileges can inject malicious scripts that execute in the browsers of users visiting the infected pages, potentially leading to session hijacking, unauthorized actions, or data leakage. Although availability is not directly affected, the breach of trust and data integrity can have significant reputational and operational consequences. The requirement for administrator-level access limits the risk to insider threats or compromised admin accounts, but once exploited, the attacker can leverage the vulnerability to escalate privileges or pivot to other attacks. Organizations with multisite WordPress deployments using the FancyBox plugin are at risk, especially if they have disabled unfiltered_html capabilities, which otherwise might mitigate such attacks. The medium CVSS score reflects the moderate risk, but the potential for persistent XSS makes it a serious concern for web security and user safety.

Mitigation Recommendations

To mitigate CVE-2024-0662, organizations should immediately update the FancyBox for WordPress plugin to a version where this vulnerability is patched once available. Until a patch is released, administrators should restrict plugin usage to trusted personnel only and audit admin accounts to prevent unauthorized access. Enabling unfiltered_html capability where feasible can reduce the attack surface by allowing trusted users to input HTML safely. Additionally, implementing a Web Application Firewall (WAF) with rules to detect and block suspicious script injections can provide a temporary defense. Regularly scanning multisite installations for injected scripts and monitoring logs for unusual admin activity are also recommended. Developers should review and improve input sanitization and output escaping in plugin code to prevent similar issues. Finally, educating administrators about the risks of stored XSS and enforcing strong authentication and access controls will help reduce exploitation likelihood.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2024-01-17T16:43:27.344Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6de3b7ef31ef0b590233

Added to database: 2/25/2026, 9:47:15 PM

Last enriched: 2/26/2026, 3:15:52 PM

Last updated: 4/12/2026, 8:31:04 AM

Views: 20

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 for AI refresh and higher limits.

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

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses