Description
WordPress Plugin Autoptimize is prone to a cross-site scripting vulnerability because it fails to properly sanitize user-supplied input. An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks. WordPress Plugin Autoptimize version 3.1.0 is vulnerable; prior versions may also be affected.
Remediation
Update to plugin version 3.1.1 or latest
References
https://wpscan.com/vulnerability/219767a8-2427-42d5-8734-bd197d9ab46b
https://plugins.svn.wordpress.org/autoptimize/trunk/readme.txt
Related Vulnerabilities
WordPress Plugin Simple Sitemap-Create a Responsive HTML Sitemap Security Bypass (3.5.4)
Plone CMS URL Redirection to Untrusted Site ('Open Redirect') Vulnerability (CVE-2020-7936)
CakePHP Improper Input Validation Vulnerability (CVE-2016-4793)
WordPress Plugin Greg's High Performance SEO Cross-Site Scripting (1.6.1)
SugarCRM Improper Control of Generation of Code ('Code Injection') Vulnerability (CVE-2019-17306)