{"schemaVersion":3,"id":"CVE-2026-5743","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"The SimpLy Gallery Block & Lightbox plugin for WordPress is vulnerable to Stored Cross-Site Scripting via block attributes in all versions up to, and including, 3.3.3.2. This is due to insufficient input sanitization and output escaping on the sliderMaxHeight block attribute in the pgc_sgb_render_callback() function. The vulnerability exists because the pgc_sgb_sanitize_custom_css() function uses a flawed regex pattern that only removes event handlers with quoted values (e.g., onfocus=\"alert()\") but fails to catch unquoted event handlers (e.g., onfocus=alert(document.cookie)), allowing the malicious code to bypass sanitization. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts in pages via block attributes that will execute whenever a user accesses an injected page.","dates":{"published":"2026-07-11T02:31:16.457Z","modified":"2026-07-13T14:40:00.739Z","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.0045,"percentile":0.38004,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.0045},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0045,"percentile":0.38004}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0045,"percentile":0.38004}]},"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":"gallerycreator","product":"simply gallery","name":"SimpLy Gallery","label":"simply gallery","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 3.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 3.3.3.1","eol":null,"hubHref":"/vendor/gallerycreator/simply_gallery"},{"vendor":"wordpress","product":"simply-gallery-block","name":"SimpLy Gallery","label":"simply-gallery-block","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 3.3.3.1 (fixed in 3.3.3.2)","noFixRecorded":false,"fixedIn":"3.3.3.2"}],"versionsText":"≤ 3.3.3.1 (fixed in 3.3.3.2)","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/29b1984d-e6da-49d5-8b40-cdf2f1bcc1bb?source=cve","label":"www.wordfence.com/threat-intel/vulnerabilities/id/29b1984d-e6da-49d5-8b40-cdf2f1bcc1bb?source=cve","hostname":"www.wordfence.com","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/simply-gallery-block/tags/3.3.2.2/blocks/init.php#L95","label":"plugins.trac.wordpress.org/browser/simply-gallery-block/tags/3.3.2.2/blocks/init.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/simply-gallery-block/trunk/blocks/init.php#L95","label":"plugins.trac.wordpress.org/browser/simply-gallery-block/trunk/blocks/init.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/simply-gallery-block/trunk/blocks/init.php#L122","label":"plugins.trac.wordpress.org/browser/simply-gallery-block/trunk/blocks/init.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/simply-gallery-block/tags/3.3.2.2/blocks/init.php#L122","label":"plugins.trac.wordpress.org/browser/simply-gallery-block/tags/3.3.2.2/blocks/init.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/simply-gallery-block/trunk/blocks/init.php#L142","label":"plugins.trac.wordpress.org/browser/simply-gallery-block/trunk/blocks/init.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/simply-gallery-block/tags/3.3.2.2/blocks/init.php#L142","label":"plugins.trac.wordpress.org/browser/simply-gallery-block/tags/3.3.2.2/blocks/init.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/simply-gallery-block/trunk/blocks/init.php#L151","label":"plugins.trac.wordpress.org/browser/simply-gallery-block/trunk/blocks/init.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/simply-gallery-block/tags/3.3.2.2/blocks/init.php#L151","label":"plugins.trac.wordpress.org/browser/simply-gallery-block/tags/3.3.2.2/blocks/init.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/changeset?reponame=&old=3581386%40simply-gallery-block&new=3581386%40simply-gallery-block","label":"plugins.trac.wordpress.org/changeset","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/29b1984d-e6da-49d5-8b40-cdf2f1bcc1bb","label":"www.wordfence.com/threat-intel/vulnerabilities/id/29b1984d-e6da-49d5-8b40-cdf2f1bcc1bb","hostname":"www.wordfence.com","tags":["Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-07-11T02:31:16.457Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-13T14:40:00.739Z","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-21T22:52:41.832Z","stale":false,"partial":false}}