Description
WordPress Plugin WP Ajax Recent Posts 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 WP Ajax Recent Posts version 1.0.1 is vulnerable; other versions may also be affected.
Remediation
Edit the source code to ensure that input is properly sanitised or disable the plugin until a fix is available
References
https://www.htbridge.com/advisory/HTB22951
http://packetstormsecurity.com/files/100848/WP-Ajax-Recent-Posts-1.0.1-Cross-Site-Scripting.html
Related Vulnerabilities
WordPress Plugin Patreon WordPress PHP Object Injection (1.2.1)
WordPress Plugin Arlo training and event management system Cross-Site Scripting (2.1.7.1)
WordPress Plugin WooCommerce-Store Exporter Multiple Cross-Site Scripting Vulnerabilities (1.7.5)
Moodle Permissions, Privileges, and Access Controls Vulnerability (CVE-2012-6098)