WordPress Gallery plugin before 2.0.0 contains a reflected cross-site scripting vulnerability. It does not sanitize and escape a parameter before outputting it back in the response of an AJAX action, available to both unauthenticated and authenticated users.
View the template here CVE-2022-1946.yaml
References:
https://github.com/cyllective/CVEs