A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-5340

CVE-2026-5340: Fancy Image Show WordPress XSS Vulnerability

CVE-2026-5340 is a stored cross-site scripting flaw in the Fancy Image Show WordPress plugin that lets authenticated attackers inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published: May 18, 2026

CVE-2026-5340 Overview

CVE-2026-5340 is a Stored Cross-Site Scripting (XSS) vulnerability in the Fancy Image Show plugin for WordPress. The flaw affects all versions up to and including 9.1. It exists in the plugin's fancy-img-show shortcode, which fails to sanitize user-supplied attributes and does not escape output before rendering. Authenticated users with contributor-level access or higher can inject arbitrary JavaScript into pages. The malicious script executes in the browser of any visitor who accesses an affected page. The vulnerability is tracked under CWE-79 (Improper Neutralization of Input During Web Page Generation).

Critical Impact

Authenticated contributors can persist JavaScript payloads that execute against site visitors and administrators, enabling session theft, account takeover, and unauthorized administrative actions through forged requests.

Affected Products

  • Fancy Image Show plugin for WordPress, all versions up to and including 9.1
  • WordPress sites permitting contributor-level (or higher) user registration
  • Any page or post embedding the fancy-img-show shortcode

Discovery Timeline

  • 2026-05-12 - CVE-2026-5340 published to the National Vulnerability Database (NVD)
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2026-5340

Vulnerability Analysis

The vulnerability stems from improper handling of shortcode attributes inside the Fancy Image Show plugin. When a contributor adds the fancy-img-show shortcode to a post, the plugin reads attribute values supplied by the user and renders them directly into the page HTML. Neither input sanitization nor output escaping is applied. As a result, attribute values containing HTML or JavaScript are persisted in the database and reflected to every visitor who loads the page.

Because the payload is stored, exploitation does not require any social engineering of the victim beyond ordinary site browsing. The injected script runs in the security context of the WordPress origin, granting access to cookies, the DOM, and authenticated session state for any logged-in visitor — including administrators reviewing contributor submissions.

Root Cause

The shortcode handler in fancy-image-show.php (referenced at lines 117 and 178 in tag 9.1) accepts attribute values through the standard WordPress shortcode_atts() mechanism without applying esc_attr(), esc_html(), wp_kses(), or sanitize_text_field() before output. WordPress shortcodes do not automatically sanitize attributes, so the responsibility falls on the plugin author. The missing escaping at the output sink is the proximate cause.

Attack Vector

An attacker first obtains a contributor account, either through open registration or by compromising an existing low-privilege user. The attacker then creates or edits a post containing the fancy-img-show shortcode with a malicious attribute value such as an onerror handler or quote-breakout payload. Once an editor or administrator previews the submission, or once the post is published, the stored script executes for every visitor.

The vulnerability requires authentication and low privileges. The scope is changed because script execution in the WordPress front-end affects security-relevant data belonging to other users, including administrators.

No verified exploit code available. Refer to the Wordfence and WordPress
plugin trac references for source-level technical details.

Detection Methods for CVE-2026-5340

Indicators of Compromise

  • Post or page content containing fancy-img-show shortcode attributes with <script>, javascript:, or HTML event handler tokens such as onerror=, onload=, or onmouseover=
  • New or recently modified posts authored by contributor-level accounts that include the fancy-img-show shortcode
  • Outbound browser requests from site visitors to attacker-controlled domains shortly after rendering affected pages
  • Unexpected administrative actions or session activity originating from administrator IP addresses after viewing contributor drafts

Detection Strategies

  • Query the wp_posts table for post_content LIKE '%fancy-img-show%' and review attribute values for HTML or JavaScript tokens
  • Inspect the WordPress audit log for contributor accounts creating posts that embed the affected shortcode
  • Deploy a web application firewall rule that flags shortcode attributes containing angle brackets, quotes paired with event handlers, or javascript: URIs

Monitoring Recommendations

  • Enable Content Security Policy (CSP) reporting to surface inline script execution on pages rendering the plugin
  • Monitor for new contributor account registrations followed by rapid post creation, a common precursor to stored XSS abuse
  • Alert on administrator session cookies being accessed from unexpected geographic locations after the publication of contributor content

How to Mitigate CVE-2026-5340

Immediate Actions Required

  • Update the Fancy Image Show plugin to a version newer than 9.1 once the vendor releases a patched build; if no patch is available, deactivate and remove the plugin
  • Audit all existing posts containing the fancy-img-show shortcode and remove or sanitize attribute values that include script content
  • Review contributor-level and author-level accounts, removing unused accounts and resetting credentials for any suspicious entries
  • Rotate administrator session cookies and authentication keys if stored payloads are discovered

Patch Information

At the time of CVE publication, no fixed version is referenced in the NVD entry. Consult the Wordfence Vulnerability Intel advisory and the WordPress Plugin Source Code repository for the latest fix status and patched release.

Workarounds

  • Restrict who can use the fancy-img-show shortcode by limiting contributor-level publication rights or requiring editor approval before publishing
  • Apply a WordPress pre_kses or do_shortcode_tag filter to strip HTML and script content from fancy-img-show attributes before rendering
  • Deploy a Content Security Policy that disallows inline scripts (script-src 'self') to neutralize injected payloads
  • Use a web application firewall to block requests posting shortcode content containing script tokens
bash
# Example: identify affected posts via WP-CLI
wp db query "SELECT ID, post_title, post_author FROM wp_posts \
  WHERE post_content LIKE '%fancy-img-show%' \
  AND (post_content LIKE '%<script%' \
       OR post_content LIKE '%onerror=%' \
       OR post_content LIKE '%javascript:%');"

# Temporarily disable the plugin while remediating
wp plugin deactivate fancy-image-show

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWordpress

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • WordPress Plugin Source Code

  • WordPress Plugin Source Code

  • WordPress Plugin Source Code

  • Wordfence Vulnerability Intel
  • Related CVEs
  • CVE-2026-7421: Passeum Ticketing Plugin XSS Vulnerability

  • CVE-2026-10100: WordPress Custom Login Page XSS Flaw

  • CVE-2026-4080: Easy Cart WordPress Plugin XSS Vulnerability

  • CVE-2026-2425: hiWeb Migration Simple Plugin XSS Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English