vendor:
WordPress
by:
gx1
5.4
CVSS
MEDIUM
XSS
79
CWE
Product Name: WordPress
Affected Version From: <= 5.2.2
Affected Version To: 5.2.2
Patch Exists: YES
Related CWE: CVE-2019-16223
CPE: a:wordpress:wordpress
Other Scripts:
N/A
Platforms Tested: any
2019
WordPress Core 5.2.2 – ‘post previews’ XSS
WordPress before 5.2.3 allows XSS in post previews by authenticated users. The vulnerability is due to two condition: 1. wp_kses_bad_protocol_once() has an issue with URL sanitization that can be passed and can lead to cross-site scripting vulnerability. This allows an attacker to inject attack strings such as: <a href="javascript:alert(document.domain)">Example Attack</a>
Mitigation:
Upgrade to WordPress 5.2.3 or later