CVE-2019-9787

HIGH LAB

WordPress <5.1.1 - RCE/XSS

Title source: llm

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
nomisec WORKING POC 2 stars
by rkatogit · poc
https://github.com/rkatogit/cve-2019-9787_csrf_poc
nomisec WRITEUP
by kuangting4231 · poc
https://github.com/kuangting4231/mitigation-cve-2019-9787
nomisec WORKING POC
by dexXxed · poc
https://github.com/dexXxed/CVE-2019-9787
nomisec WORKING POC
by matinciel · poc
https://github.com/matinciel/Wordpress_CVE-2019-9787
nomisec WRITEUP
by PalmTreeForest · poc
https://github.com/PalmTreeForest/CodePath_Week_7-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

COMMUNITY
Community Lab
docker pull wordpress:5.0
docker pull wordpress:cli
docker pull wordpress:5.1.1
+3 more repos

Details

CWE
CWE-352
Status published
Products (1)
wordpress/wordpress < 5.1.1
Published Mar 14, 2019
Tracked Since Feb 18, 2026