CVE-2025-3662 FancyBox for WordPress < 3.3.6 - Unauthenticated Stored XSS

Medium 6.1 Published Updated

Unauthenticated attackers can inject malicious scripts via gallery captions in FancyBox for WordPress, potentially leading to code execution or account takeover.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-3662?

CVE-2025-3662 is a medium-severity cross-site scripting vulnerability in Unknown FancyBox for WordPress, published on 3 Jun 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The FancyBox for WordPress plugin before 3.3.6 does not escape captions and titles attributes before using them to populate galleries' caption fields. The issue was received as a Contributor+ Stored XSS, however one of our researcher (Marc Montpas) escalated it to an Unauthenticated Stored XSS

Weakness: CWE-79

Which versions are affected by CVE-2025-3662?

It affects 1 product.

Products include Colorlib Fancybox.

How do I fix CVE-2025-3662?

No fix has been published for CVE-2025-3662 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-3662 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-3662 exists.

Sources

Also known as GHSA-3q79-wmhj-39pr.

Is CVE-2025-3662 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free