CVE-2026-4665: WP Carousel Free <= 2.7.10 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'data-caption' Attribute
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 wpksespost(), 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-4665?
CVE-2026-4665 is considered a high severity vulnerability due to its potential to allow an attacker to execute scripts in the context of a victim's browser.
How do I fix CVE-2026-4665?
To fix CVE-2026-4665, you should update the WP Carousel Free plugin to version 2.7.11 or later, where this vulnerability has been addressed.
Who is affected by CVE-2026-4665?
CVE-2026-4665 affects users of the WP Carousel Free plugin for WordPress versions up to and including 2.7.10.
What types of attacks can exploit CVE-2026-4665?
CVE-2026-4665 can be exploited through Stored Cross-Site Scripting (XSS) attacks, where malicious scripts are injected and stored via the `data-caption` attribute.
What should I do if I cannot update the plugin due to compatibility issues related to CVE-2026-4665?
If you cannot update due to compatibility issues, consider disabling the WP Carousel Free plugin temporarily until a compatible update is available.