Mixed Media Gallery Blocks <= 3.5.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Gallery Item Link URL
- ID
- WPSEC-2026-3940
- Plugin
- SimpLy Gallery (simply-gallery-block)
- Affected
- from 1.5.1 before 3.5.1
- Remediation
- Update to 3.5.1 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-11-25
- Attack surface
- Mixed Media Gallery Blocks on WPSec AttackSurface
- Fix released
- Published
Description
The SimpLy Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the gallery item link URL (the 'pgc_sgb_link' attachment meta and the gallery block's 'itemsMetaDataCollection' attribute) in all versions up to, and including, 3.5.0, due to insufficient validation of the link URL scheme. The link is stored after only sanitize_text_field() or kses filtering, neither of which removes a javascript: URL, and the gallery front-end scripts assign it to the item's link button href without checking it. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user clicks the injected gallery link button.
References
- https://wpsec.com/vuln/WPSEC-2026-3940/
- https://plugins.svn.wordpress.org/simply-gallery-block/tags/3.5.1/
- https://wordpress.org/plugins/simply-gallery-block/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS