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

Published Nov 18, 2026
·
Updated

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.

Affected Software

1 affected component
FancyBox for WordPress<=3.4.2

Event History

Nov 18, 2026
CVE Published
via MITRE·11:30 AM
Data Sourced
via MITRE·11:30 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue, and what does the attacker need?

An unauthenticated attacker can exploit it without prior privileges or user interaction. The attacker needs to submit a crafted comment containing a malicious anchor wrapped around a smilie shortcode, such as :mrgreen:.

2

When does the injected script execute?

The payload is stored in a page and executes when a user accesses the injected page. The crafted smilie is rendered by WordPress as an image, causing the plugin to process the surrounding anchor.

3

Which plugin versions are affected?

All FancyBox for WordPress versions up to and including 3.4.2 are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203