{"id":"UBUNTU-CVE-2021-39202","details":"WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database. In affected versions the widgets editor introduced in WordPress 5.8 beta 1 has improper handling of HTML input in the Custom HTML feature. This leads to stored XSS in the custom HTML widget. This has been patched in WordPress 5.8. It was only present during the testing/beta phase of WordPress 5.8.","modified":"2026-05-20T16:05:11.895184963Z","published":"2021-09-09T22:15:00Z","upstream":["CVE-2021-39202"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-39202"},{"type":"REPORT","url":"https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-fr6h-3855-j297"},{"type":"REPORT","url":"https://hackerone.com/reports/1222797"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-39202"}],"affected":[{"package":{"name":"wordpress","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/wordpress?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_version":"4.4.2+dfsg-1ubuntu1","binary_name":"wordpress-theme-twentyfourteen"},{"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/2021/UBUNTU-CVE-2021-39202.json"}},{"package":{"name":"wordpress","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/wordpress?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/2021/UBUNTU-CVE-2021-39202.json"}},{"package":{"name":"wordpress","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/wordpress?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.2.2+dfsg1-1","5.2.4+dfsg1-1","5.3.2+dfsg1-1","5.3.2+dfsg1-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.3.2+dfsg1-1ubuntu1","binary_name":"wordpress"},{"binary_name":"wordpress-l10n","binary_version":"5.3.2+dfsg1-1ubuntu1"},{"binary_name":"wordpress-theme-twentynineteen","binary_version":"5.3.2+dfsg1-1ubuntu1"},{"binary_name":"wordpress-theme-twentyseventeen","binary_version":"5.3.2+dfsg1-1ubuntu1"},{"binary_name":"wordpress-theme-twentysixteen","binary_version":"5.3.2+dfsg1-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-39202.json"}},{"package":{"name":"wordpress","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/wordpress?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.7.1+dfsg1-2ubuntu1","5.8.1+dfsg1-2ubuntu1","5.8.2+dfsg1-1ubuntu1","5.8.3+dfsg1-1ubuntu1","5.8.3+dfsg1-1ubuntu1.1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.8.3+dfsg1-1ubuntu1.1","binary_name":"wordpress"},{"binary_name":"wordpress-l10n","binary_version":"5.8.3+dfsg1-1ubuntu1.1"},{"binary_name":"wordpress-theme-twentynineteen","binary_version":"5.8.3+dfsg1-1ubuntu1.1"},{"binary_name":"wordpress-theme-twentytwenty","binary_version":"5.8.3+dfsg1-1ubuntu1.1"},{"binary_name":"wordpress-theme-twentytwentyone","binary_version":"5.8.3+dfsg1-1ubuntu1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-39202.json"}},{"package":{"name":"wordpress","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/wordpress?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.2+dfsg1-1ubuntu1","6.4.3+dfsg1-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"wordpress","binary_version":"6.4.3+dfsg1-1ubuntu1"},{"binary_name":"wordpress-l10n","binary_version":"6.4.3+dfsg1-1ubuntu1"},{"binary_name":"wordpress-theme-twentytwentyfour","binary_version":"6.4.3+dfsg1-1ubuntu1"},{"binary_version":"6.4.3+dfsg1-1ubuntu1","binary_name":"wordpress-theme-twentytwentythree"},{"binary_version":"6.4.3+dfsg1-1ubuntu1","binary_name":"wordpress-theme-twentytwentytwo"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-39202.json"}},{"package":{"name":"wordpress","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/wordpress?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.7.2+dfsg1-1.1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"wordpress","binary_version":"6.7.2+dfsg1-1.1ubuntu1"},{"binary_name":"wordpress-l10n","binary_version":"6.7.2+dfsg1-1.1ubuntu1"},{"binary_version":"6.7.2+dfsg1-1.1ubuntu1","binary_name":"wordpress-theme-twentytwentyfive"},{"binary_name":"wordpress-theme-twentytwentyfour","binary_version":"6.7.2+dfsg1-1.1ubuntu1"},{"binary_name":"wordpress-theme-twentytwentythree","binary_version":"6.7.2+dfsg1-1.1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-39202.json"}},{"package":{"name":"wordpress","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/wordpress?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.7.2+dfsg1-1.1ubuntu1","6.7.2+dfsg1-1.1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"wordpress","binary_version":"6.7.2+dfsg1-1.1ubuntu2"},{"binary_name":"wordpress-l10n","binary_version":"6.7.2+dfsg1-1.1ubuntu2"},{"binary_name":"wordpress-theme-twentytwentyfive","binary_version":"6.7.2+dfsg1-1.1ubuntu2"},{"binary_version":"6.7.2+dfsg1-1.1ubuntu2","binary_name":"wordpress-theme-twentytwentyfour"},{"binary_name":"wordpress-theme-twentytwentythree","binary_version":"6.7.2+dfsg1-1.1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-39202.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}