Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-4665: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in shapedplugin Carousel, Slider, Photo Gallery with Lightbox, Video Slider, by WP Carousel

0
Medium
VulnerabilityCVE-2026-4665cvecve-2026-4665cwe-79
Published: Tue May 05 2026 (05/05/2026, 03:37:39 UTC)
Source: CVE Database V5
Vendor/Project: shapedplugin
Product: Carousel, Slider, Photo Gallery with Lightbox, Video Slider, by WP Carousel

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/05/2026, 04:22:03 UTC

Technical Analysis

The WP Carousel Free plugin for WordPress suffers from a stored XSS vulnerability due to the `fancybox-config.js` script reading the carousel container's `id` attribute directly from the DOM without sanitization. When a Contributor crafts a malformed carousel container ID containing characters invalid for jQuery selectors, the fancybox configuration fails and the library falls back to rendering the `data-caption` attribute as raw HTML. Since WordPress allows `data-*` attributes via `wp_kses_post()`, this enables authenticated attackers with Contributor or higher privileges to inject arbitrary JavaScript that executes when users click images in the carousel lightbox. This vulnerability affects all versions up to 2.7.10 of the plugin.

Potential Impact

An attacker with Contributor-level access or higher can inject persistent malicious scripts into pages using the vulnerable carousel plugin. These scripts execute in the context of users who view and interact with the carousel lightbox images, potentially leading to session hijacking, privilege escalation, or other malicious actions limited by the attacker's privileges and the victim's browser context. The vulnerability does not allow unauthenticated exploitation and does not impact availability.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict Contributor-level access to trusted users only and consider disabling or removing the WP Carousel Free plugin if possible. Monitor vendor channels for updates or patches addressing this vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2026-03-23T17:12:42.424Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69f96cc0cbff5d86109c3906

Added to database: 5/5/2026, 4:06:24 AM

Last enriched: 5/5/2026, 4:22:03 AM

Last updated: 5/6/2026, 3:03:29 AM

Views: 9

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses