CVE-2026-4665: WP Carousel Free <= 2.7.10 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'data-caption' Attribute

Published May 5, 2026
·
Updated

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

1 affected component
WP Carousel WP Carousel Free<=2.7.10

Event History

May 5, 2026
CVE Published
via MITRE·03:37 AM
Data Sourced
via MITRE·03:37 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

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