WordPress component: Cross-site scripting
WordPress component is affected by cross-site scripting. The vulnerable path is reachable without authentication. Injected script can execute in the affected site's origin when the vulnerable output is viewed.
- Component
- WordPress component
- Plugin slug
- Not applicable
- Affected
- See vendor advisory
- Safe version
- See mitigation notes
- Published
- Mar 14, 2019
Update, patch or deactivate.
Update WordPress component to a release outside the affected range, or disable and remove it until a fixed version is available.
No confirmed safe version is listed. Consider a vendor-supported patch or temporarily restricting the affected functionality while you assess the risk.
Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.
Technical 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.
NVD vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary and upstream sources
- NVD record for CVE-2019-9787
- Upstream reference securityfocus.com
- Upstream reference blog.ripstech.com
- GitHub upstream reference github.com
- Upstream reference lists.debian.org
- WordPress upstream reference wordpress.org
- WordPress upstream reference wordpress.org
- Upstream reference wpvulndb.com
- Upstream reference debian.org
- Upstream reference securityfocus.com
- Upstream reference blog.ripstech.com
- GitHub upstream reference github.com
- Upstream reference lists.debian.org
- WordPress upstream reference wordpress.org
- WordPress upstream reference wordpress.org
- Upstream reference wpvulndb.com
- Upstream reference debian.org