{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2020-4049","id":"CVE-2020-4049","title":"Authenticated self-XSS via theme uploads in WordPress","description":"In affected versions of WordPress, when uploading themes, the name of the theme folder can be crafted in a way that could lead to JavaScript execution in /wp-admin on the themes page. This does require an admin to upload the theme, and is low severity self-XSS. This has been patched in version 5.4.2, along with all the previously affected versions via a minor release (5.3.4, 5.2.7, 5.1.6, 5.0.10, ","descriptionLong":"In affected versions of WordPress, when uploading themes, the name of the theme folder can be crafted in a way that could lead to JavaScript execution in /wp-admin on the themes page. This does require an admin to upload the theme, and is low severity self-XSS. This has been patched in version 5.4.2, along with all the previously affected versions via a minor release (5.3.4, 5.2.7, 5.1.6, 5.0.10, 4.9.15, 4.8.14, 4.7.18, 4.6.19, 4.5.22, 4.4.23, 4.3.24, 4.2.28, 4.1.31, 4.0.31, 3.9.32, 3.8.34, 3.7.34).","published":"2020-06-12T16:00:23.000Z","updated":"2026-11-08T02:45:16.838184506Z","reserved":"2019-12-30T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":2.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N","rating":"low","source":"GitHub_M"},"metrics":[{"version":"3.1","score":2.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N","rating":"low","source":"GitHub_M"},{"version":"3.1","score":2.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N","rating":"low","source":"github.com"},{"version":"3.1","score":2.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N","rating":"low","source":"NVD"},{"version":"3.1","score":2.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N","rating":"low","source":"OSV"},{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","rating":"low","source":"NVD"}],"rating":"low","products":["wordpress-develop"],"affectedProducts":[{"vendor":"WordPress","product":"wordpress-develop","defaultStatus":null,"versions":[{"status":"affected","version":">= 5.4.0, < 5.4.2"},{"status":"affected","version":">= 5.3.0, < 5.3.4"},{"status":"affected","version":">= 5.2.0, < 5.2.7"},{"status":"affected","version":">= 5.1.0, < 5.1.6"},{"status":"affected","version":">= 5.0.0, < 5.0.10"},{"status":"affected","version":">= 4.9.0, < 4.9.15"},{"status":"affected","version":">= 4.8.0, < 4.8.14"},{"status":"affected","version":">= 4.7.0, < 4.7.18"},{"status":"affected","version":">= 4.6.0, < 4.6.19"},{"status":"affected","version":">= 4.5.0, < 4.5.22"},{"status":"affected","version":">= 4.4.0, < 4.4.23"},{"status":"affected","version":">= 4.3.0, < 4.3.24"},{"status":"affected","version":">= 4.2.0, < 4.2.28"},{"status":"affected","version":">= 4.1.0, < 4.1.31"},{"status":"affected","version":">= 4.0.0, < 4.0.31"},{"status":"affected","version":">= 3.9.0, < 3.9.32"},{"status":"affected","version":">= 3.8.0, < 3.8.34"},{"status":"affected","version":">= 3.7.0, < 3.7.34"}],"platforms":[]}],"packages":[],"cwes":["CWE-80","CWE-79"],"aliases":["BIT-wordpress-2020-4049","BIT-wordpress-multisite-2020-4049","GHSA-87h4-phjv-rm6p"],"references":[{"url":"https://wordpress.org/news/2020/06/wordpress-5-4-2-security-and-maintenance-release/","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory"]},{"url":"https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-87h4-phjv-rm6p","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/WordPress/wordpress-develop/commit/404f397b4012fd9d382e55bf7d206c1317f01148","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ODNHXVJS25YVWYQHOCICXTLIN5UYJFDN/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/773N2ZV7QEMBGKH6FBKI6Q5S3YJMW357/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://www.debian.org/security/2020/dsa-4709","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/07/msg00000.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/09/msg00011.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0253,"epssPercentile":0.8523,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2020-4049","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-4049","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2020-4049","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2020-4049","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}