{"schemaVersion":3,"id":"CVE-2026-4300","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-04-08T09:25:50.003Z","modified":"2026-04-08T17:26:49.967Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.4,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"wordfence","score":6.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00505,"percentile":0.42211,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.07599999999999994,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00429},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00429,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00429,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00429,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00429,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00429,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00429,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00429,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00429,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00429,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00429,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00505,"percentile":0.42211}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00429,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00429,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00429,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00505,"percentile":0.42211}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"robosoft","product":"robo gallery – photo & image slider","name":"Robo Gallery – Photo & Image Slider","label":"robo gallery – photo & image slider","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 5.1.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 5.1.3","eol":null,"hubHref":"/vendor/robosoft/robo_gallery_-_photo__image_slider"},{"vendor":"wordpress","product":"robo-gallery","name":"Robo Gallery – Photo & Image Slider","label":"robo-gallery","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 5.1.3 (fixed in 5.1.4)","noFixRecorded":false,"fixedIn":"5.1.4"}],"versionsText":"≤ 5.1.3 (fixed in 5.1.4)","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/d8693b7d-693f-450a-89ef-e936a8813ca9?source=cve","label":"www.wordfence.com/threat-intel/vulnerabilities/id/d8693b7d-693f-450a-89ef-e936a8813ca9?source=cve","hostname":"www.wordfence.com","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/robo-gallery/trunk/includes/frontend/modules/class/jsoptions.php#L97","label":"plugins.trac.wordpress.org/browser/robo-gallery/trunk/includes/frontend/modules/class/jsoptions.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/robo-gallery/tags/5.1.3/includes/frontend/modules/class/jsoptions.php#L97","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/robo-gallery/trunk/includes/frontend/modules/base-grid/layout.v1.php#L101","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/robo-gallery/tags/5.1.3/includes/frontend/modules/base-grid/layout.v1.php#L101","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/robo-gallery/trunk/includes/frontend/modules/base-grid/layout.v1.php#L52","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/robo-gallery/tags/5.1.3/includes/frontend/modules/base-grid/layout.v1.php#L52","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/robo-gallery/trunk/includes/frontend/modules/base-grid/grid/grid.v1.php#L89","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/robo-gallery/tags/5.1.3/includes/frontend/modules/base-grid/grid/grid.v1.php#L89","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/robo-gallery/trunk/includes/frontend/modules/class/jsoptions.php#L87","label":"plugins.trac.wordpress.org/browser/robo-gallery/trunk/includes/frontend/modules/class/jsoptions.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/robo-gallery/tags/5.1.3/includes/frontend/modules/class/jsoptions.php#L87","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/robo-gallery/trunk/includes/options/rbs_gallery_options_loading.php#L95","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/robo-gallery/tags/5.1.3/includes/options/rbs_gallery_options_loading.php#L95","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3488182%40robo-gallery&new=3488182%40robo-gallery&sfp_email=&sfph_mail=","label":"plugins.trac.wordpress.org/changeset","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/d8693b7d-693f-450a-89ef-e936a8813ca9","label":"www.wordfence.com/threat-intel/vulnerabilities/id/d8693b7d-693f-450a-89ef-e936a8813ca9","hostname":"www.wordfence.com","tags":["Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-04-08T09:25:50.003Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-04-08T17:26:49.967Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T05:20:32.066Z","stale":false,"partial":false}}