# All-in-One Video Gallery – Video Player & Galleries for YouTube, Vimeo & Self-Hosted Videos <= 5.2.0 - Unauthenticated DOM-Based Cross-Site Scripting via HLS/DASH Stream Text Track Labels

- **ID:** WPSEC-2026-4095
- **Plugin:** All-in-One Video Gallery – Video Player & Galleries for YouTube, Vimeo & Self-Hosted Videos (`all-in-one-video-gallery`), https://wordpress.org/plugins/all-in-one-video-gallery/
- **Affected versions:** all versions before 5.2.1
- **Fixed in:** 5.2.1 (Update to 5.2.1 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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-27)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/all-in-one-video-gallery
- **Fix released:** 2026-11-26
- **Published:** 2026-11-27
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4095/

## Description

The All-in-One Video Gallery plugin for WordPress is vulnerable to DOM-Based Cross-Site Scripting via the text track labels and languages of HLS/DASH streams in the Vidstack (Plyr) player in all versions up to, and including, 5.2.0. This is due to track names read from a remote playlist being passed to Plyr, which inserts them into its captions menu with innerHTML, without escaping. The stream URL can be supplied as the base64-encoded 'hls' or 'dash' query parameter of the plugin's player page, or stored in a video's HLS/DASH source. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute when a user follows a crafted link or views a video that points to an attacker-controlled playlist. Exploitation requires the Vidstack player to be selected in the plugin settings.

## References

- https://wpsec.com/vuln/WPSEC-2026-4095/
- https://plugins.svn.wordpress.org/all-in-one-video-gallery/tags/5.2.1/
- https://wordpress.org/plugins/all-in-one-video-gallery/

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

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.
