The All-in-One Video Gallery – Video Player & Galleries for YouTube, Vimeo & Self-Hosted Videos plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'embedcode' parameter in all versions up to, and including, 5.2.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The plugin grants the Subscriber role the edit_aiovg_videos and edit_published_aiovg_videos capabilities on activation, and save_meta_data() accepts the 'embedcode' type without checking current_user_can('unfiltered_html'), meaning any Subscriber can store a malicious shortcode containing a data: URI in the hls attribute that hls.js later processes and Plyr writes into the DOM via innerHTML.
Attack Parameters
Impact Assessment
CVSS Vector v3.1