CVE-2019-9787: WordPress

High severity, CVSS 8.8. EPSS: 38.7% chance of exploitation in the next 30 days.

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.

Affected products

  • WordPress WordPress: before 5.1.1 (fixed in 5.1.1)

Published 2019-03-14. Last modified 2026-06-17.