CVE-2026-5743: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in gallerycreator SimpLy Gallery
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.
AI Analysis
Technical Summary
CVE-2026-5743 is a stored cross-site scripting vulnerability in the SimpLy Gallery Block & Lightbox WordPress plugin (gallerycreator). The vulnerability is due to insufficient input sanitization and output escaping on the sliderMaxHeight block attribute within the pgc_sgb_render_callback() function. The pgc_sgb_sanitize_custom_css() function uses a flawed regex that only removes event handlers with quoted values but fails to catch unquoted event handlers, allowing malicious script injection. Authenticated attackers with Author-level privileges or higher can exploit this to inject arbitrary web scripts that execute when users access the injected page. This affects all versions up to and including 3.3.3.2.
Potential Impact
An attacker with Author-level access or higher can inject persistent malicious scripts into pages via block attributes. These scripts execute in the context of users visiting the affected pages, potentially leading to information disclosure (e.g., cookie theft) and other client-side impacts. The vulnerability does not affect availability but impacts confidentiality and integrity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, restrict Author-level access to trusted users only and consider disabling or removing the SimpLy Gallery plugin if possible. Monitor for updates from the vendor or plugin maintainers to apply an official fix once released.
CVE-2026-5743: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in gallerycreator SimpLy Gallery
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.
CVSS v3.1
Score 6.4medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-5743 is a stored cross-site scripting vulnerability in the SimpLy Gallery Block & Lightbox WordPress plugin (gallerycreator). The vulnerability is due to insufficient input sanitization and output escaping on the sliderMaxHeight block attribute within the pgc_sgb_render_callback() function. The pgc_sgb_sanitize_custom_css() function uses a flawed regex that only removes event handlers with quoted values but fails to catch unquoted event handlers, allowing malicious script injection. Authenticated attackers with Author-level privileges or higher can exploit this to inject arbitrary web scripts that execute when users access the injected page. This affects all versions up to and including 3.3.3.2.
Potential Impact
An attacker with Author-level access or higher can inject persistent malicious scripts into pages via block attributes. These scripts execute in the context of users visiting the affected pages, potentially leading to information disclosure (e.g., cookie theft) and other client-side impacts. The vulnerability does not affect availability but impacts confidentiality and integrity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, restrict Author-level access to trusted users only and consider disabling or removing the SimpLy Gallery plugin if possible. Monitor for updates from the vendor or plugin maintainers to apply an official fix once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-04-07T13:48:55.983Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a51b98168715ace430ae4e6
Added to database: 07/11/2026, 03:33:21 UTC
Last enriched: 07/18/2026, 15:42:50 UTC
Last updated: 08/24/2026, 22:52:12 UTC
Views: 66
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.