# Video Gallery – YouTube Gallery, Playlist & Video Grid <= 4.1.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via emd_form Shortcode

- **ID:** WPSEC-2026-3730
- **Plugin:** Video Gallery – YouTube Gallery, Playlist & Video Grid (`youtube-showcase`), https://wordpress.org/plugins/youtube-showcase/
- **Affected versions:** from 3.1.1 before 4.1.2
- **Fixed in:** 4.1.2 (Update to 4.1.2 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-23)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/youtube-showcase
- **Fix released:** 2026-11-22
- **Published:** 2026-11-23
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3730/

## Description

The Video Gallery – YouTube Gallery, Playlist & Video Grid plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'emd_form' shortcode in all versions up to, and including, 4.1.1, due to the shortcode loading any post ID as form configuration without checking its post type or status, and enqueuing the configuration's css_enq and js_enq URLs without validation. This makes it possible for authenticated attackers, with contributor-level access and above, to make pages load arbitrary external scripts that will execute whenever a user accesses an injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-3730/
- https://plugins.svn.wordpress.org/youtube-showcase/tags/4.1.2/
- https://wordpress.org/plugins/youtube-showcase/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3730/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
