CSRF in Wordpress

CVE-2019-9787

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.

Vulnerability class: CSRF (Cross-Site Request Forgery)

EPSS: 0.438 (98.6th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2019-9787?
CVE-2019-9787 is a high-severity vulnerability in Wordpress, classified under Cross-Site Request Forgery (CSRF). CVSS score: 8.8/10. Published 2019-03-14.
How severe is CVE-2019-9787?
High severity. CVSS v3 base score is 8.8 out of 10.
Is CVE-2019-9787 known to be exploited?
27 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.