{"id":"UBUNTU-CVE-2019-20042","details":"In wp-includes/formatting.php in WordPress 3.7 to 5.3.0, the function wp_targeted_link_rel() can be used in a particular way to result in a stored cross-site scripting (XSS) vulnerability. This has been patched in WordPress 5.3.1, along with all the previous WordPress versions from 3.7 to 5.3 via a minor release.","modified":"2025-10-24T04:48:07Z","published":"2019-12-27T08:15:00Z","upstream":["CVE-2019-20042"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2019-20042"},{"type":"REPORT","url":"https://core.trac.wordpress.org/changeset/46894/trunk"},{"type":"REPORT","url":"https://github.com/WordPress/wordpress-develop/commit/1f7f3f1f59567e2504f0fbebd51ccf004b3ccb1d"},{"type":"REPORT","url":"https://wordpress.org/news/2019/12/wordpress-5-3-1-security-and-maintenance-release/"},{"type":"REPORT","url":"https://blog.ripstech.com/filter/vulnerabilities/"},{"type":"REPORT","url":"https://wpvulndb.com/vulnerabilities/9975"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2019-20042"}],"affected":[{"package":{"name":"wordpress","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/wordpress@4.4.2+dfsg-1ubuntu1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3+dfsg-1","4.3.1+dfsg-1","4.4+dfsg-1","4.4.1+dfsg-1","4.4.2+dfsg-1","4.4.2+dfsg-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"wordpress","binary_version":"4.4.2+dfsg-1ubuntu1"},{"binary_name":"wordpress-l10n","binary_version":"4.4.2+dfsg-1ubuntu1"},{"binary_name":"wordpress-theme-twentyfifteen","binary_version":"4.4.2+dfsg-1ubuntu1"},{"binary_name":"wordpress-theme-twentyfourteen","binary_version":"4.4.2+dfsg-1ubuntu1"},{"binary_name":"wordpress-theme-twentysixteen","binary_version":"4.4.2+dfsg-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-20042.json"}},{"package":{"name":"wordpress","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/wordpress@4.9.5+dfsg1-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.8.2+dfsg-2","4.8.3+dfsg-1","4.9.1+dfsg-1","4.9.2+dfsg-1","4.9.4+dfsg-1","4.9.5+dfsg1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"wordpress","binary_version":"4.9.5+dfsg1-1"},{"binary_name":"wordpress-l10n","binary_version":"4.9.5+dfsg1-1"},{"binary_name":"wordpress-theme-twentyfifteen","binary_version":"4.9.5+dfsg1-1"},{"binary_name":"wordpress-theme-twentyseventeen","binary_version":"4.9.5+dfsg1-1"},{"binary_name":"wordpress-theme-twentysixteen","binary_version":"4.9.5+dfsg1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-20042.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}