CVE-2019-9787
mediumpriority · attend · 58EPSS 0.386 · 99 %ileexploit · PoCEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.8–8.8
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (6)
Public proof-of-concept and weaponised exploit code.
- dexXxed/CVE-2019-9787Overview PoC of CSRF CVE-2019-9787 WordPress Version 5.1.1 PoC · poc_in_github
- kuangting4231/mitigation-cve-2019-9787kuangting4231/mitigation-cve-2019-9787PoC · poc_in_github
- matinciel/Wordpress_CVE-2019-9787Try to reproduce this issue with DockerPoC · poc_in_github
- rkatogit/cve-2019-9787_csrf_pocrkatogit/cve-2019-9787_csrf_pocPoC · poc_in_github
affected products (6)
Products and version ranges known to be affected.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (26)
External citations — patches, advisories, analysis.
- http://www.securityfocus.com/bid/107411cnnvd
- https://blog.ripstech.com/2019/wordpress-csrf-to-rce/cnnvd
- https://github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080bcnnvd
- https://lists.debian.org/debian-lts-announce/2019/03/msg00044.htmlcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2019-9787cnnvd
- https://wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/cnnvd
- https://wordpress.org/support/wordpress-version/version-5-1-1/cnnvd
- https://wpvulndb.com/vulnerabilities/9230cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan