{"api_version":"1","generated_at":"2026-07-23T11:36:04+00:00","cve":"CVE-2019-9787","urls":{"html":"https://cve.report/CVE-2019-9787","api":"https://cve.report/api/cve/CVE-2019-9787.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2019-9787","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-9787"},"summary":{"title":"CVE-2019-9787","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2019-03-14 16:29:00","updated_at":"2019-03-31 22:29:00"},"problem_types":["CWE-352"],"metrics":[],"references":[{"url":"https://wpvulndb.com/vulnerabilities/9230","name":"https://wpvulndb.com/vulnerabilities/9230","refsource":"MISC","tags":[],"title":"WordPress 3.9-5.1 - Comment Cross-Site Scripting (XSS)","mime":"text/html","httpstatus":"403","archivestatus":"200"},{"url":"https://github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080b","name":"https://github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080b","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Comments: Improve comment content filtering. · WordPress/WordPress@0292de6 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://blog.ripstech.com/2019/wordpress-csrf-to-rce/","name":"https://blog.ripstech.com/2019/wordpress-csrf-to-rce/","refsource":"MISC","tags":["Exploit","Third Party Advisory"],"title":"WordPress 5.1 CSRF to Remote Code Execution","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.debian.org/security/2020/dsa-4677","name":"DSA-4677","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-4677-1 wordpress","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://wordpress.org/support/wordpress-version/version-5-1-1/","name":"https://wordpress.org/support/wordpress-version/version-5-1-1/","refsource":"MISC","tags":["Release Notes","Vendor Advisory"],"title":"Version 5.1.1 | WordPress.org","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/107411","name":"107411","refsource":"BID","tags":["Third Party Advisory","VDB Entry"],"title":"WordPress CVE-2019-9787 Remote Code Execution Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/","name":"https://wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/","refsource":"MISC","tags":["Release Notes","Vendor Advisory"],"title":"News – WordPress 5.1.1 Security and Maintenance Release – WordPress.org","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html","name":"[debian-lts-announce] 20190331 [SECURITY] [DLA 1742-1] wordpress security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 1742-1] wordpress security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-9787","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-9787","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2019","cve_id":"9787","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"wordpress","cpe5":"wordpress","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"9787","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"wordpress","cpe5":"wordpress","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2019-9787","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://blog.ripstech.com/2019/wordpress-csrf-to-rce/","refsource":"MISC","url":"https://blog.ripstech.com/2019/wordpress-csrf-to-rce/"},{"name":"https://wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/","refsource":"MISC","url":"https://wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/"},{"name":"https://github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080b","refsource":"MISC","url":"https://github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080b"},{"refsource":"MISC","name":"https://wpvulndb.com/vulnerabilities/9230","url":"https://wpvulndb.com/vulnerabilities/9230"},{"name":"107411","refsource":"BID","url":"http://www.securityfocus.com/bid/107411"},{"name":"https://wordpress.org/support/wordpress-version/version-5-1-1/","refsource":"MISC","url":"https://wordpress.org/support/wordpress-version/version-5-1-1/"},{"refsource":"MLIST","name":"[debian-lts-announce] 20190331 [SECURITY] [DLA 1742-1] wordpress security update","url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html"},{"refsource":"DEBIAN","name":"DSA-4677","url":"https://www.debian.org/security/2020/dsa-4677"}]}},"nvd":{"publishedDate":"2019-03-14 16:29:00","lastModifiedDate":"2019-03-31 22:29:00","problem_types":["CWE-352"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","versionEndExcluding":"5.1.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2019","CveId":"9787","Ordinal":"147666","Title":"CVE-2019-9787","CVE":"CVE-2019-9787","Year":"2019"},"notes":[{"CveYear":"2019","CveId":"9787","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2019","CveId":"9787","Ordinal":"2","NoteData":"2019-03-14","Type":"Other","Title":"Published"},{"CveYear":"2019","CveId":"9787","Ordinal":"3","NoteData":"2020-05-06","Type":"Other","Title":"Modified"}]}}}