CVE-2026-136992: All-in-One Video Gallery <= 5.2.0 - Authenticated (Subscriber+) Stored Cross-Site Scripting via 'embedcode' Video Metabox Field
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 editaiovgvideos and editpublishedaiovgvideos capabilities on activation, and savemetadata() accepts the 'embedcode' type without checking currentusercan('unfilteredhtml'), 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.
Affected Software
Event History
Frequently Asked Questions
Which users can exploit this issue?
Any authenticated WordPress user with the Subscriber role or higher can exploit it when the plugin is active. On activation, the plugin grants Subscribers the edit_aiovg_videos and edit_published_aiovg_videos capabilities needed to create or modify affected video content.
Does exploitation require an administrator or unfiltered HTML permission?
No. The affected embedcode handling accepts the input without checking whether the current user has the unfiltered_html capability, so a Subscriber can store the malicious content.
When does the injected script execute?
The payload is stored in video content and executes when a user accesses the page containing the injected video. The described attack uses a malicious shortcode with a data: URI in its hls attribute, which is processed by hls.js and inserted into the DOM by Plyr.
Are default Subscriber permissions affected?
Yes, if the plugin was activated with its described capability assignments in place. Its activation process grants the relevant video-editing capabilities to the Subscriber role.