CVE-2026-96571

FancyBox for WordPress <= 3.4.2 - Unauthenticated Stored Cross-Site Scripting via Comment Anchor 'href' Attribute

Published Nov 18, 2026 CVSS 3.1 · 7.2 High EPSS n/a KEV · Not listed
Description
The FancyBox for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Comment Anchor 'href' Attribute in all versions up to, and including, 3.4.2 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires the attacker to wrap the payload anchor around a smilie shortcode (e.g., :mrgreen:), which WordPress renders as an &lt;img&gt; element, satisfying the plugin's a:has(img) enrollment selector and disguising the malicious link as an ordinary comment emoticon.

Analysis

AI-generated

Technical impact

The FancyBox for WordPress plugin contains a stored cross‑site scripting vulnerability that allows unauthenticated attackers to inject malicious scripts into comment anchor 'href' attributes. The lack of input sanitization and output escaping permits the attacker to wrap a payload around a WordPress smiley shortcode, which is rendered as an <img> element, satisfying the plugin's anchor‑has‑img selector and hiding the malicious link as a normal emoticon. When a victim views the page containing the forged comment, the injected script is executed in the victim’s browser, granting the attacker the ability to steal user credentials, deface the site, or perform other malicious actions with the victim’s session context.

Affected Systems

All releases of the FancyBox for WordPress plugin created by Colorlibplugins, up to and including version 3.4.2, are affected. Users running any of these versions on a WordPress installation are at risk if the plugin's comment handling functionality is exposed.

Risk and Exploitability

The CVSS score of 7.2 indicates a medium to high severity. Because the lack of authentication is required only for comment posting—something most sites allow—an attacker can easily gain write access without needing credentials. The EPSS score is not available, but the absence of a KEV listing suggests exploitation is not confirmed in the wild yet. Nonetheless, the stored XSS can affect every viewer of the compromised page, making the potential damage widespread. Administrators should consider the risk of executing arbitrary JavaScript in user browsers and the ease of exploitation when evaluating their response.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the FancyBox plugin to a release newer than 3.4.2 in which the XSS fix has been applied.
  • If an immediate upgrade is not possible, remove or deactivate the plugin and replace it with a safe alternative that does not process comment anchor 'href' attributes.
  • Restrict comment posting to authenticated users or enable a reputable anti‑spam plugin to prevent unauthenticated comment creation, thereby reducing the attack surface until a patch can be applied.

Generated by OpenCVE AI on November 18, 2026 at 22:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Colorlibplugins
Colorlibplugins fancybox For Wordpress
Wordpress-extensions
Wordpress-extensions fancybox For Wordpress
Vendors & Products Colorlibplugins
Colorlibplugins fancybox For Wordpress
Wordpress-extensions
Wordpress-extensions fancybox For Wordpress
Type Values Removed Values Added
Description The FancyBox for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Comment Anchor 'href' Attribute in all versions up to, and including, 3.4.2 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires the attacker to wrap the payload anchor around a smilie shortcode (e.g., :mrgreen:), which WordPress renders as an &lt;img&gt; element, satisfying the plugin's a:has(img) enrollment selector and disguising the malicious link as an ordinary comment emoticon.
Title FancyBox for WordPress <= 3.4.2 - Unauthenticated Stored Cross-Site Scripting via Comment Anchor 'href' Attribute
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Nov 18, 2026, 6:23 PM
Reserved
Sep 23, 2026, 1:25 PM
Status
Deferred
Published
Nov 18, 2026, 12:17 PM
Modified
Nov 18, 2026, 7:18 PM