XSS in Gallerycreator Simply Gallery
CVE-2026-5743
- CVSS v3
- 6.4 Medium
- Public exploits
- None known
- EPSS
- 0.004 · 39.8th percentile
- Published
- 2026-07-11
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- Low
PR:L - User Interaction
- None
UI:N - Scope
- Changed
S:C - Confidentiality
- Low
C:L - Integrity
- Low
I:L - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.004, 39.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Gallerycreator Simply Gallery — versions 0
Weakness classification (CWE)
References
- www.wordfence.com/threat-intel/vulnerabilities/id/29b1984d-e6da-49d5-8b40-cdf2f…
- plugins.trac.wordpress.org/browser/simply-gallery-block/tags/3.3.2.2/blocks/ini…
- plugins.trac.wordpress.org/browser/simply-gallery-block/trunk/blocks/init.php
- plugins.trac.wordpress.org/browser/simply-gallery-block/trunk/blocks/init.php
- plugins.trac.wordpress.org/browser/simply-gallery-block/tags/3.3.2.2/blocks/ini…
- plugins.trac.wordpress.org/browser/simply-gallery-block/trunk/blocks/init.php
- plugins.trac.wordpress.org/browser/simply-gallery-block/tags/3.3.2.2/blocks/ini…
- plugins.trac.wordpress.org/browser/simply-gallery-block/trunk/blocks/init.php
- plugins.trac.wordpress.org/browser/simply-gallery-block/tags/3.3.2.2/blocks/ini…
- plugins.trac.wordpress.org/changeset