WordPress Core < 5.1.1 - Cross-Site Request Forgery to Cross-Site Scripting via Comments

9.6
Cross-Site Request Forgery (CSRF)
CVE CVE-2019-9787
CVSS 9.6 (Critical)
Publicly Published April 12, 2019
Last Updated August 14, 2023
Researcher Simon Scannell

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.

References

Share

Vulnerability Details for WordPress

Software Type Core
Patched? Yes
Remediation Update to one of the following versions, or a newer patched version: 3.7.29, 3.8.29, 3.9.27, 4.0.26, 4.1.26, 4.2.23, 4.3.19, 4.4.18, 4.5.17, 4.6.14, 4.7.13, 4.8.9, 4.9.10, 5.0.4, 5.1.1
Affected Versions
  • 5.1
  • < 3.7
  • 4.8 - 4.8.8
  • 4.9 - 4.9.9
Expand to see 12 more affected version ranges.
  • 5.0 - 5.0.3
  • 3.7 - 3.7.28
  • 3.8 - 3.8.28
  • 3.9 - 3.9.26
  • 4.0 - 4.0.25
  • 4.1 - 4.1.25
  • 4.2 - 4.2.22
  • 4.3 - 4.3.18
  • 4.4 - 4.4.17
  • 4.5 - 4.5.16
  • 4.6 - 4.6.13
  • 4.7 - 4.7.12
Patched Versions
  • 3.7.29
  • 3.8.29
  • 3.9.27
  • 4.0.26
Expand to see 11 more patched versions.
  • 4.1.26
  • 4.2.23
  • 4.3.19
  • 4.4.18
  • 4.5.17
  • 4.6.14
  • 4.7.13
  • 4.8.9
  • 4.9.10
  • 5.0.4
  • 5.1.1

Recent vulnerabilities in WordPress

# Title CVE ID CVSS Researchers Date
1 WordPress Core <= 7.0.3 - Authenticated (Author+) Remote Code Execution via Malicious File Upload CVE-2026-65640 8.8 pwn.ai Team August 12, 2026
2 WordPress Core <= 7.0.2 - Authenticated (Author+) CSS Injection 5.5 August 8, 2026
3 WordPress Core <= 7.0.2 - Unauthenticated Sensitive Information Exposure via Comment Feeds 5.3 Elio Gubser (odkdn1) August 8, 2026
4 WordPress Core <= 7.0.2 - Unauthenticated Blind Server-Side Request Forgery 5.8 Andrew MacPherson August 8, 2026
5 WordPress Core <= 7.0.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Quick Edit 4.9 moochi, mappymappy August 8, 2026
6 WordPress Core <= 7.0.2 - Authenticated (Subscriber+) Email Change Confirmation Bypass 4.3 0ways August 8, 2026
7 WordPress Core <= 7.0.2 - Unauthenticated Reflected Cross-Site Scripting via log Parameter CVE-2026-64638 6.1 pwn.ai Team August 8, 2026
8 WordPress Core <= 7.0.2 - Authenticated (Subscriber+) Missing Authorization to Arbitrary Site Creation on Multisite 4.3 Aikido Security August 8, 2026
9 WordPress Core <= 7.0.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Emoji Settings Element 6.4 Asaf Mozes August 8, 2026
10 WordPress Core 6.9 - 7.0.1 - Remote Code Execution via REST API Batch Request Route Confusion CVE-2026-63030 9.8 Adam Kues July 17, 2026

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation