Description
WordPress before 5.1.1 does not properly filter comment content, leading to Remote Code Execution by unauthenticated users in a default configuration. This occurs because CSRF protection is mishandled, and because Search Engine Optimization of A elements is performed incorrectly, leading to XSS. The XSS results in administrative access, which allows arbitrary changes to .php files. This is related to wp-admin/includes/ajax-actions.php and wp-includes/comment.php.
Exploits (6)
nomisec
WORKING POC
3 stars
by sijiahi · poc
https://github.com/sijiahi/Wordpress_cve-2019-9787_defense
References (8)
Scores
CVSS v3
8.8
EPSS
0.8102
EPSS Percentile
99.2%
Attack Vector
NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Lab Environment
Details
CWE
CWE-352
Status
published
Products (1)
wordpress/wordpress
< 5.1.1
Published
Mar 14, 2019
Tracked Since
Feb 18, 2026