CVE Catalog

CVE-2026-5743

MediumCVSS 6.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.26%

17th percentile - higher than 17% of all known CVEs

Summary

The SimpLy Gallery Block & Lightbox plugin for WordPress is vulnerable to stored XSS via block attributes due to insufficient input sanitization and output escaping. The pgc_sgb_sanitize_custom_css() function uses a flawed regex that fails to catch unquoted event handlers, allowing authenticated attackers with Author-level access to inject arbitrary scripts.

Risk Assessment

The organization risks session hijacking, account takeover, and malware distribution through script execution on compromised pages.

Recommendation

Immediately update the SimpLy Gallery Block & Lightbox plugin to version 3.3.3.3 or later, which includes a fix for this vulnerability.

Related vulnerabilities

Original NVD description (English source)

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 data from NVD (NIST) · CISA KEV · EPSS