Description
WordPress 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 versions ranging from 3.9.3 and up to (and including) 4.2 are vulnerable; other versions may also be affected.
Remediation
Update to WordPress version 4.2.1 or latest
References
https://klikki.fi/adv/wordpress2.html
http://seclists.org/fulldisclosure/2015/Apr/84
https://gist.github.com/ethicalhack3r/48d4e3e73c9241bd5b8c
https://www.exploit-db.com/exploits/36844/
http://packetstormsecurity.com/files/131644/WordPress-4.2-Cross-Site-Scripting.html
Related Vulnerabilities
WordPress Plugin WooCommerce Product Attachment Cross-Site Scripting (1.1.2)
WordPress Plugin Haiku minimalist audio player Cross-Site Scripting (1.0.0)
WordPress 4.2.x Arbitrary File Deletion Vulnerability (4.2 - 4.2.20)
WordPress Plugin Email Before Download SQL Injection (6.7)
WordPress Plugin Slimstat Analytics Cross-Site Request Forgery (4.8.3)