CVE-2019-9787: XSS

Published Mar 14, 2019
·
Updated

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 Software

3 affected componentsFixes available
debian/wordpress<=5.0.3+dfsg1-1, <=4.7.5+dfsg-2+deb9u5, <=4.7.5+dfsg-2, <=4.7.5+dfsg-2+deb9u4
5.1.1+dfsg1-15.0.4+dfsg1-1
debian/wordpress
5.0.15+dfsg1-0+deb10u15.0.19+dfsg1-0+deb10u15.7.8+dfsg1-0+deb11u26.1.1+dfsg1-16.3.1+dfsg1-1
WordPress<5.1.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/wordpress to a version that resolves this vulnerability.

    Fixed in 5.1.1+dfsg1-1Fixed in 5.0.4+dfsg1-1
  2. Upgrade

    Upgrade debian/wordpress to a version that resolves this vulnerability.

    Fixed in 5.0.15+dfsg1-0+deb10u1Fixed in 5.0.19+dfsg1-0+deb10u1Fixed in 5.7.8+dfsg1-0+deb11u2Fixed in 6.1.1+dfsg1-1Fixed in 6.3.1+dfsg1-1
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.1.1

Event History

Mar 14, 2019
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2019-9787?

CVE-2019-9787 is considered a critical vulnerability because it allows remote code execution by unauthenticated users.

2

How do I fix CVE-2019-9787?

You can fix CVE-2019-9787 by upgrading WordPress to version 5.1.1 or later.

3

Who is affected by CVE-2019-9787?

All WordPress installations prior to version 5.1.1 are vulnerable to CVE-2019-9787.

4

What are the potential impacts of CVE-2019-9787?

The potential impacts of CVE-2019-9787 include unauthorized remote code execution and XSS attacks.

5

Does CVE-2019-9787 require authentication to exploit?

No, CVE-2019-9787 can be exploited by unauthenticated users, making it particularly dangerous.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203