{"id":"UBUNTU-CVE-2021-39201","details":"WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database. ### Impact The issue allows an authenticated but low-privileged user (like contributor/author) to execute XSS in the editor. This bypasses the restrictions imposed on users who do not have the permission to post `unfiltered_html`. ### Patches This has been patched in WordPress 5.8, and will be pushed to older versions via minor releases (automatic updates). It's strongly recommended that you keep auto-updates enabled to receive the fix. ### References https://wordpress.org/news/category/releases/ https://hackerone.com/reports/1142140 ### For more information If you have any questions or comments about this advisory: * Open an issue in [HackerOne](https://hackerone.com/wordpress)","modified":"2026-05-20T16:05:11.369159258Z","published":"2021-09-09T22:15:00Z","upstream":["CVE-2021-39201"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-39201"},{"type":"REPORT","url":"https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-wh69-25hr-h94v"},{"type":"REPORT","url":"https://hackerone.com/reports/1142140"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-39201"}],"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_version":"4.4.2+dfsg-1ubuntu1","binary_name":"wordpress"},{"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/2021/UBUNTU-CVE-2021-39201.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_version":"4.9.5+dfsg1-1","binary_name":"wordpress-theme-twentyfifteen"},{"binary_version":"4.9.5+dfsg1-1","binary_name":"wordpress-theme-twentyseventeen"},{"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-39201.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_name":"wordpress","binary_version":"5.3.2+dfsg1-1ubuntu1"},{"binary_version":"5.3.2+dfsg1-1ubuntu1","binary_name":"wordpress-l10n"},{"binary_name":"wordpress-theme-twentynineteen","binary_version":"5.3.2+dfsg1-1ubuntu1"},{"binary_version":"5.3.2+dfsg1-1ubuntu1","binary_name":"wordpress-theme-twentyseventeen"},{"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-39201.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_name":"wordpress","binary_version":"5.8.3+dfsg1-1ubuntu1.1"},{"binary_version":"5.8.3+dfsg1-1ubuntu1.1","binary_name":"wordpress-l10n"},{"binary_name":"wordpress-theme-twentynineteen","binary_version":"5.8.3+dfsg1-1ubuntu1.1"},{"binary_version":"5.8.3+dfsg1-1ubuntu1.1","binary_name":"wordpress-theme-twentytwenty"},{"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-39201.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_name":"wordpress-theme-twentytwentythree","binary_version":"6.4.3+dfsg1-1ubuntu1"},{"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-39201.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_version":"6.7.2+dfsg1-1.1ubuntu1","binary_name":"wordpress"},{"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-39201.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_version":"6.7.2+dfsg1-1.1ubuntu2","binary_name":"wordpress-l10n"},{"binary_name":"wordpress-theme-twentytwentyfive","binary_version":"6.7.2+dfsg1-1.1ubuntu2"},{"binary_name":"wordpress-theme-twentytwentyfour","binary_version":"6.7.2+dfsg1-1.1ubuntu2"},{"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-39201.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":"low"}]}