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.
Published: 2026-07-11
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The SimpLy Gallery Block & Lightbox plugin for WordPress contains a stored cross‑site scripting flaw that targets the sliderMaxHeight block attribute. The plugin’s sanitization routine removes only quoted event handlers, unintentionally allowing unquoted handlers to persist. When an attacker can edit a page with Author‑level or higher permissions, they can embed arbitrary JavaScript in that attribute. The script runs in visitors’ browsers whenever the block is rendered, potentially stealing session cookies, injecting malicious content, or defacing the site. The impact is direct code execution in the victim’s browser context, leading to credential theft or defacement.

Affected Systems

Any WordPress installation that has the SimpLy Gallery plugin installed on a version up to and including 3.3.3.2 is vulnerable. Versions newer than 3.3.3.2 are not known to contain the flaw and are presumed safe.

Risk and Exploitability

The vulnerability carries a CVSS score of 6.4, indicating moderate severity, and an EPSS score below 1 %, implying a low exploitation probability. The flaw is not listed in CISA’s KEV catalog. Attackers must first be authenticated with Author or higher privileges to modify the sliderMaxHeight attribute; once the payload is stored, it automatically executes for every visitor who loads the affected page, exposing the site to cross‑site scripting but only for users with such privileges to inject the payload.

Generated by OpenCVE AI on July 29, 2026 at 09:33 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update SimpLy Gallery to the latest available release that removes the unsanitized sliderMaxHeight attribute.
  • If an update is not immediately possible, revoke Author‑level or higher permissions from users who can edit block attributes or temporarily disable the sliderMaxHeight setting until the fix is applied.
  • Conduct a security audit or run automated scanners to ensure that all block attributes are properly sanitized and no residual event handlers remain.
  • Optionally, deploy a web application firewall rule that blocks payloads containing event handler attributes in block content.

Generated by OpenCVE AI on July 29, 2026 at 09:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 13 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 11 Jul 2026 04:45:00 +0000

Type Values Removed Values Added
First Time appeared Gallerycreator
Gallerycreator simply Gallery
Wordpress
Wordpress wordpress
Vendors & Products Gallerycreator
Gallerycreator simply Gallery
Wordpress
Wordpress wordpress

Sat, 11 Jul 2026 03:30:00 +0000

Type Values Removed Values Added
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.
Title Mixed Media Gallery Blocks <= 3.3.3.1 - Authenticated (Author+) Stored Cross-Site Scripting via sliderMaxHeight Block Attribute
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Gallerycreator Simply Gallery
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-07-13T14:40:00.739Z

Reserved: 2026-04-07T13:48:55.983Z

Link: CVE-2026-5743

cve-icon Vulnrichment

Updated: 2026-07-13T14:35:00.708Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T09:45:04Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')