The plugin does not validate and escape some of its shortcode attributes before outputting them back in a page/post where the shortcode is embed, which could allow users with the contributor role and above to perform Stored Cross-Site Scripting attacks
[gallery ids='1' captions="' onmouseover='alert(/XSS/)'"]
Note: ids is an attachment id from the media library