CVE-2026-5743
Received Received - Intake

Stored XSS in SimpLy Gallery Block & Lightbox WordPress Plugin

Vulnerability report for CVE-2026-5743, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-11

Last updated on: 2026-07-11

Assigner: Wordfence

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-11
Last Modified
2026-07-11
Generated
2026-07-11
AI Q&A
2026-07-11
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
simply_gallery_block simply_gallery_block to 3.3.2 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 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.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The SimpLy Gallery Block & Lightbox plugin for WordPress has a Stored Cross-Site Scripting (XSS) vulnerability in all versions up to and including 3.3.3.2. This vulnerability arises because the plugin does not properly sanitize and escape input on the sliderMaxHeight block attribute within the pgc_sgb_render_callback() function.

Specifically, the pgc_sgb_sanitize_custom_css() function uses a flawed regular expression that only removes event handlers with quoted values (like onfocus="alert()"), but fails to remove unquoted event handlers (like onfocus=alert(document.cookie)). This flaw allows attackers to inject malicious scripts that bypass sanitization.

Authenticated users with Author-level access or higher can exploit this vulnerability by injecting arbitrary web scripts into pages via block attributes. These scripts will execute whenever any user accesses the injected page.

Impact Analysis

This vulnerability allows authenticated attackers with Author-level access or above to inject malicious scripts into web pages. These scripts execute in the context of users visiting the affected pages, potentially leading to theft of sensitive information such as cookies, session tokens, or other data accessible via the browser.

The impact includes compromise of user accounts, unauthorized actions performed on behalf of users, and potential spread of malware or phishing attacks through the affected website.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-5743. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart