XSS in WordPress
CVE-2019-16780
WordPress users with lower privileges (like contributors) can inject JavaScript code in the block editor using a specific payload, which is executed within the dashboard. This can lead to XSS if an admin opens the post in the editor. Execution of this attack does require an authenticated user. This has been patched in WordPress 5.3.1, along with all the previous WordPress versions from 3.7 to 5.3 via a minor release. Automatic updates are enabled by default for minor releases and we strongly recommend that you keep them enabled.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.8 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.017, 77.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- WordPress — versions < 5.3.1, 3.7
- Debian Linux — versions 9.0, 10.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 9 other repositories (20142995/nuclei-templates, Afetter618/WordPress-PenTest, ARPSyndicate/cvemon, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- wpvulndb.com/vulnerabilities/9976 (Third Party Advisory)
- github.com/WordPress/wordpress-develop/security/advisories/GHSA-x3wp-h3qx-9w94 (Third Party Advisory)
- wordpress.org/news/2019/12/wordpress-5-3-1-security-and-maintenance-release/ (Third Party Advisory, Release Notes)
- github.com/WordPress/wordpress-develop/commit/505dd6a20b6fc3d06130018c1caeff764… (Patch, Third Party Advisory)
- hackerone.com/reports/738644 (Permissions Required, Third Party Advisory)
- 20200108 [SECURITY] [DSA 4599-1] wordpress security update (mailing-list, Mailing List, Third Party Advisory)
- DSA-4599 (vendor-advisory, Third Party Advisory)
- DSA-4677 (vendor-advisory, Third Party Advisory)