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-4300

CVE-2026-4300: Robo Gallery WordPress XSS Vulnerability

CVE-2026-4300 is a stored cross-site scripting flaw in Robo Gallery for WordPress allowing authenticated attackers to inject malicious scripts. This post covers technical details, affected versions, impact, and mitigation.

Published: April 10, 2026

CVE-2026-4300 Overview

A Stored Cross-Site Scripting (XSS) vulnerability has been identified in the Robo Gallery plugin for WordPress, affecting all versions up to and including 5.1.3. The vulnerability exists in the 'Loading Label' setting and allows authenticated attackers with Author-level access or higher to inject arbitrary JavaScript code that executes when users view pages containing the affected gallery shortcode.

The vulnerability stems from an insecure custom marker pattern (|***...***|) used by the plugin's fixJsFunction() method to embed raw JavaScript function references within JSON-encoded configuration objects. While the plugin sanitizes input with sanitize_text_field(), this function only strips HTML tags and does not filter the custom marker pattern, allowing malicious payloads to bypass sanitization and achieve script execution on the frontend.

Critical Impact

Authenticated attackers with Author-level privileges can inject persistent malicious scripts that execute in visitors' browsers, potentially leading to session hijacking, credential theft, defacement, or further attacks against site users.

Affected Products

  • Robo Gallery plugin for WordPress versions up to and including 5.1.3

Discovery Timeline

  • April 8, 2026 - CVE-2026-4300 published to NVD
  • April 8, 2026 - Last updated in NVD database

Technical Details for CVE-2026-4300

Vulnerability Analysis

The Robo Gallery plugin implements a custom mechanism for embedding JavaScript function references within JSON-encoded gallery configuration objects. The fixJsFunction() method uses a distinctive |***...***| marker pattern to identify values that should be treated as raw JavaScript rather than JSON strings.

When gallery options are rendered on the frontend, the plugin uses PHP's json_encode() function, which naturally wraps all string values in double quotes. The fixJsFunction() method subsequently strips the "|*** and ***|" sequences, effectively converting what appears to be a quoted JSON string value into executable raw JavaScript code within inline <script> tags via the renderMainBlock() function.

The Loading Label field (stored as rbs_gallery_LoadingWord post_meta) is defined as an rbstext type field. While the plugin sanitizes this input using WordPress's sanitize_text_field() function upon save, this sanitization approach only removes HTML tags and certain special characters—it does not filter the |***...***| marker sequences because they contain no HTML markup.

The gallery post type is registered with capability_type => 'post', which grants Author-level users the ability to create and modify gallery entries. This means any compromised or malicious Author account can exploit this vulnerability to inject persistent XSS payloads that affect all visitors to pages containing the compromised gallery.

Root Cause

The root cause is insufficient input validation and an insecure design pattern for embedding JavaScript within JSON structures. The plugin's reliance on sanitize_text_field() alone fails to account for the custom |***...***| marker syntax that triggers raw JavaScript injection during frontend rendering. The markers themselves are not HTML and therefore pass through sanitization unmodified, creating a sanitization bypass that leads to arbitrary script execution.

Attack Vector

An attacker with Author-level access creates or edits a gallery and enters a malicious payload such as |***alert(document.domain)***| in the Loading Label field. This value passes through sanitize_text_field() intact since it contains no HTML tags. When stored in the rbs_gallery_LoadingWord post_meta and subsequently rendered on the frontend, the fixJsFunction() method strips the quote markers, converting the string into raw JavaScript code that executes within the inline script block generated by renderMainBlock().

The attack requires network access and low-privilege authentication (Author role), but once the malicious gallery is published, the injected script executes automatically for any user who visits a page containing the gallery shortcode, without requiring any additional user interaction.

Detection Methods for CVE-2026-4300

Indicators of Compromise

  • Presence of |*** and ***| patterns in rbs_gallery_LoadingWord post_meta values in the WordPress database
  • Unexpected JavaScript code appearing in gallery configuration inline scripts on frontend pages
  • User reports of suspicious browser behavior or pop-ups when viewing gallery pages
  • Audit logs showing gallery modifications by Author-level users with unusual field values

Detection Strategies

  • Implement database monitoring to scan wp_postmeta entries for the rbs_gallery_LoadingWord meta_key containing |*** marker patterns
  • Deploy Web Application Firewall (WAF) rules to detect and block requests containing the |***...***| pattern in POST data
  • Review server access logs for POST requests to WordPress admin endpoints that include the suspicious marker pattern in request bodies

Monitoring Recommendations

  • Enable WordPress audit logging to track all gallery creation and modification events by Author-level users
  • Configure browser-based Content Security Policy (CSP) violation reporting to detect inline script injection attempts
  • Implement periodic database integrity scans to identify anomalous post_meta entries containing JavaScript patterns

How to Mitigate CVE-2026-4300

Immediate Actions Required

  • Update the Robo Gallery plugin to a patched version as soon as one becomes available from the developer
  • Audit all existing gallery entries in the WordPress database for suspicious |***...***| patterns in the Loading Label field
  • Temporarily restrict gallery creation and editing permissions to Administrator-level users only
  • Consider temporarily disabling the Robo Gallery plugin if immediate patching is not possible

Patch Information

A changeset addressing this vulnerability has been committed to the WordPress plugin repository. Site administrators should update to the latest available version of Robo Gallery through the WordPress admin interface or by downloading directly from the WordPress plugin repository. The WordPress Robo Gallery Changeset contains the security fix. Additional vulnerability details are available in the Wordfence Vulnerability Report.

Workarounds

  • Implement custom input validation to sanitize or reject the |*** marker pattern in gallery settings before storage
  • Use a Web Application Firewall to filter requests containing the malicious marker pattern
  • Restrict the edit_posts capability for untrusted users to prevent gallery manipulation until a patch is applied
bash
# Database query to identify potentially compromised galleries
wp db query "SELECT post_id, meta_value FROM wp_postmeta WHERE meta_key = 'rbs_gallery_LoadingWord' AND meta_value LIKE '%|***%'"

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.04%

  • 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 Robo Gallery Code

  • WordPress Base Grid Layout

  • WordPress Base Grid Layout

  • WordPress JS Options Class

  • WordPress JS Options Class

  • WordPress Gallery Options Loading

  • WordPress Robo Gallery Code

  • WordPress Base Grid Layout

  • WordPress Base Grid Layout

  • WordPress JS Options Class

  • WordPress JS Options Class

  • WordPress Gallery Options Loading

  • WordPress Robo Gallery Changeset

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-1543: Avada Builder WordPress XSS Vulnerability

  • CVE-2026-4811: WPB Floating Menu Plugin XSS Vulnerability

  • CVE-2026-7613: WordPress Cost of Goods Plugin XSS Flaw

  • CVE-2026-5776: Email Encoder WordPress 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