Robo Gallery <= 5.1.3 - Authenticated (Author+) Stored Cross-Site Scripting via 'Loading Label' Setting

6.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2026-4300
CVSS 6.4 (Medium)
Publicly Published April 7, 2026
Last Updated April 8, 2026
Researcher Athiwat Tiprasaharn (Jitlada)

Description

The Robo Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'Loading Label' setting in all versions up to, and including, 5.1.3. The plugin uses a custom `|***...***|` marker pattern in its `fixJsFunction()` method to embed raw JavaScript function references within JSON-encoded configuration objects. When a gallery's options are rendered on the frontend, `json_encode()` wraps all string values in double quotes. The `fixJsFunction()` method then strips the `"|***` and `***|"` sequences, effectively converting a JSON string value into raw JavaScript code. The Loading Label field (stored as `rbs_gallery_LoadingWord` post_meta) is an `rbstext` type field that is sanitized with `sanitize_text_field()` on save. While this strips HTML tags, it does not strip the `|***...***|` markers since they contain no HTML. When a user inputs `|***alert(document.domain)***|`, the value passes through sanitization intact, is stored in post_meta, and is later retrieved and output within an inline `<script>` tag via `renderMainBlock()` with the quote markers stripped — resulting in arbitrary JavaScript execution. The gallery post type uses `capability_type => 'post'`, allowing Author-level users to create galleries. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses a page containing the gallery shortcode.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Robo Gallery – Photo & Image Slider

Software Type Plugin
Software Slug robo-gallery (view on wordpress.org)
Patched? Yes
Remediation Update to version 5.1.4, or a newer patched version
Affected Version
  • <= 5.1.3
Patched Version
  • 5.1.4

Recent vulnerabilities in Robo Gallery – Photo & Image Slider

# Title CVE ID CVSS Researchers Date
1 Robo Gallery <= 5.1.2 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2026-32356 6.4 Nguyen Ba Khanh February 14, 2026
2 Multiple Plugins <= (Various Versions) - Authenticated (Contributor+) Stored DOM-Based Cross-Site Scripting via Magnific Popups JavaScript Library CVE-2024-5647 6.4 Webbernaut July 2, 2025
3 Robo Gallery <= 5.0.2 - Authenticated (Administrator+) Stored Cross-Site Scripting CVE-2025-47521 4.4 Nabil Irawan May 7, 2025
4 Photo Gallery, Images, Slider in Rbs Image Gallery <= 3.2.21 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2024-10144 6.4 Dmitrii Ignatyev March 11, 2025
5 Photo Gallery, Images, Slider in Rbs Image Gallery <= 3.2.23 - Authenticated (Admin+) Stored Cross-Site Scripting CVE-2024-13384 4.4 Krugov Artyom March 3, 2025
6 Photo Gallery, Images, Slider in Rbs Image Gallery <= 3.2.21 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2024-10102 6.4 Dmitrii Ignatyev December 17, 2024
7 Robo Gallery <= 3.2.21 - Authenticated (Author+) Stored Cross-Site Scripting CVE-2024-49696 6.4 Robert DeVore October 21, 2024
8 Photo Gallery, Images, Slider in Rbs Image Gallery <= 3.2.21 - Missing Authorization to Authenticated (Subscriber+) Private Gallery Title Disclosure CVE-2024-8431 4.3 Trương Hữu Phúc (truonghuuphuc) October 7, 2024
9 Photo Gallery, Images, Slider in Rbs Image Gallery <= 3.2.19 - Authenticated (Contributor+) Stored Cross-Site Scripting via Gallery Title CVE-2024-3896 6.4 Tim Coen July 24, 2024
10 Photo Gallery, Images, Slider in Rbs Image Gallery <= 3.2.19 - Authenticated (Author+) Stored Cross-Site Scripting via Image Title CVE-2024-3894 6.4 Tim Coen June 18, 2024

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation