FancyBox for WordPress <= 3.4.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Link data-* Attributes
- ID
- WPSEC-2026-2800
- Plugin
- FancyBox for WordPress (fancybox-for-wordpress)
- Affected
- from 3.1.0 before 3.4.3
- Remediation
- Update to 3.4.3 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-11-10
- Attack surface
- FancyBox for WordPress on WPSec AttackSurface
- Fix released
- Published
Description
The FancyBox for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the data-* attributes of links opened in the lightbox in all versions up to, and including, 3.4.2. This is due to the bundled FancyBox library merging every data-* and data-options value of the clicked link into its settings, including markup templates such as baseTpl, errorTpl, btnTpl and video.tpl. It also accepts link-supplied sources with unsafe URL schemes and inserts link-supplied HTML, inline and Ajax content without sanitization. This makes it possible for authenticated attackers with contributor-level access and above to inject arbitrary web scripts in pages that will execute whenever a user opens the lightbox.
References
- https://wpsec.com/vuln/WPSEC-2026-2800/
- https://plugins.svn.wordpress.org/fancybox-for-wordpress/tags/3.4.3/
- https://wordpress.org/plugins/fancybox-for-wordpress/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON or Markdown · All advisories: JSON, RSS