Skip to main content

WordPress CVE-2026-4300

| EUVDEUVD-2026-20435 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-04-08 Wordfence GHSA-f324-cf3c-hqgv
6.4
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

3
EUVD ID Assigned
Apr 08, 2026 - 10:00 euvd
EUVD-2026-20435
Analysis Generated
Apr 08, 2026 - 10:00 vuln.today
CVE Published
Apr 08, 2026 - 09:25 nvd
MEDIUM 6.4

DescriptionCVE.org

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.

AnalysisAI

Stored cross-site scripting in Robo Gallery for WordPress up to version 5.1.3 allows authenticated Author-level users to inject arbitrary JavaScript via the Loading Label gallery setting. The vulnerability exploits a custom marker pattern (|*...*|) in the fixJsFunction() method that converts JSON-wrapped strings into raw JavaScript code; input validation with sanitize_text_field() fails to strip the markers, enabling script injection that executes whenever the gallery shortcode is rendered. No public exploit code or active exploitation has been confirmed at time of analysis.

Technical ContextAI

The Robo Gallery plugin uses a non-standard approach to embed JavaScript function references within JSON configuration objects. The fixJsFunction() method in jsoptions.php processes gallery options by searching for the |*...*| marker pattern and stripping the surrounding quote and marker characters, converting what PHP's json_encode() wrapped as a string value into executable JavaScript. The Loading Label field (rbs_gallery_LoadingWord post_meta) is an rbstext field type sanitized via WordPress's sanitize_text_field() function on save. While this removes HTML tags, it does not filter the pipe, asterisk, or other characters in the |*...*| pattern since they are not HTML. When the gallery renders via renderMainBlock() in layout.v1.php and grid.v1.php, configuration data is embedded in an inline <script> tag with the markers stripped-causing any payload within the markers to execute as JavaScript. The root cause is improper output encoding combined with a secondary input validation bypass; the markers were intended as a safe abstraction but lack adequate sanitization. This falls under CWE-79 (Cross-site Scripting) because user-controlled input reaches the browser without proper escaping.

RemediationAI

Upgrade Robo Gallery to a patched version released after 5.1.3 when available. In the interim, disable gallery creation permissions for untrusted Author-level users, restricting creation to Editors or Administrators only, or deactivate the plugin if not actively used. Site administrators should review all existing galleries for suspicious Loading Label values containing unusual markers or JavaScript keywords (alert, eval, fetch, XMLHttpRequest, etc.) via the post_meta table or gallery edit interface. The plugin developer should update sanitize_text_field() to explicitly strip the |* and *| markers before storage, or redesign the configuration encoding to use a safer abstraction (e.g., boolean flags or enum values instead of marker-based string transformation). Refer to the Wordfence threat intelligence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/d8693b7d-693f-450a-89ef-e936a8813ca9?source=cve for additional context and monitoring recommendations.

CVE-2016-10045 CRITICAL POC
9.8 Dec 30

The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail comman

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-5084 CRITICAL POC
9.8 May 23

The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil

CVE-2024-8353 CRITICAL POC
9.8 Sep 28

The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all

CVE-2020-36847 CRITICAL POC
9.8 Jul 12

The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner

CVE-2025-11749 CRITICAL POC
9.8 Nov 05

The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint

CVE-2016-1209 CRITICAL POC
9.8 May 14

The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via

CVE-2024-4443 CRITICAL POC
9.8 May 22

The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based

CVE-2024-1698 CRITICAL POC
9.8 Feb 27

SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a

CVE-2023-6875 CRITICAL POC
9.8 Jan 11

The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i

CVE-2024-1512 CRITICAL POC
9.8 Feb 17

The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base

CVE-2024-3495 CRITICAL POC
9.8 May 22

The Country State City Dropdown CF7 plugin for WordPress is vulnerable to SQL Injection via the ‘cnt’ and 'sid' paramete

Share

CVE-2026-4300 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy