Carousel, Slider, Photo Gallery with Lightbox, Video Slider, by WP Carousel: Cross-site scripting
Carousel, Slider, Photo Gallery with Lightbox, Video Slider, by WP Carousel is affected by cross-site scripting. Exploitation requires at least contributor-level access. Injected script can execute in the affected site's origin when the vulnerable output is viewed. The published affected range is <= 2.7.10.
- Component
- Carousel, Slider, Photo Gallery with Lightbox, Video Slider, by WP Carousel
- Plugin slug
wp-carousel-free- Affected
- <= 2.7.10
- Safe version
> 2.7.10- Published
- May 05, 2026
This CVE was published May 05, 2026 and is one of 1 known issue for this plugin.
Update, patch or deactivate.
Update Carousel, Slider, Photo Gallery with Lightbox, Video Slider, by WP Carousel to a release after 2.7.10, or disable and remove it until a fixed version is available.
A safe version is available, so updating to that version or later is the preferred remediation. If an immediate update is not practical, consider a targeted application patch or temporarily restricting the affected functionality.
Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.
Technical description
The WP Carousel Free plugin for WordPress is vulnerable to Stored Cross-Site Scripting via crafted fancybox `data-caption` attributes in all versions up to, and including, 2.7.10. This is due to the `fancybox-config.js` script reading the carousel container's `id` attribute directly from the DOM to construct a jQuery selector without sanitization. When a Contributor crafts an HTML block with a malformed carousel container ID (containing characters invalid for jQuery selectors), the custom fancybox configuration throws a JavaScript error and fails to initialize. This causes the bundled fancybox library (v3.5.7) to fall back to its default caption handling, which renders the `data-caption` attribute content as raw HTML. Since WordPress allows `data-*` attributes through `wp_kses_post()`, 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 clicks an image in the crafted carousel lightbox.
CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N