# CVE-2020-4049: Authenticated self-XSS via theme uploads in WordPress

- Priority: **Routine**
- Reason: Not severe (CVSS 2.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2020-06-12 · Modified: 2024-08-04
- Aliases: UBUNTU-CVE-2020-4049, DEBIAN-CVE-2020-4049
- Record: https://cvemate.com/vulnerability/CVE-2020-4049 · JSON: https://cvemate.com/vulnerability/CVE-2020-4049/json

## Description

```text
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).
```

## Signals

- CVSS: 3.5 low (v2.0, NVD) AV:N/AC:M/Au:S/C:N/I:P/A:N
- EPSS: 2.53%, percentile 85.435%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian wordpress (Debian): \< 5.4.2+dfsg1-1
- ubuntu wordpress (Ubuntu): All versions (No fix recorded)
- debian debian\_linux: 8.0 \| 9.0 \| 10.0
- fedoraproject fedora: 31 \| 32
- wordpress wordpress: \< 3.7 (fixed in 3.7.34) \| ≥ 3.7, ≤ 3.7.33 (fixed in 3.7.34) \| ≥ 3.8, ≤ 3.8.33 (fixed in 3.7.34) \| ≥ 3.9, ≤ 3.9.31 (fixed in 3.7.34) \| ≥ 4.0, ≤ 4.0.30 (fixed in 3.7.34) \| ≥ 4.1, ≤ 4.1.30 (fixed in 3.7.34) \| ≥ 4.2, ≤ 4.2.27 (fixed in 3.7.34) \| ≥ 4.3, ≤ 4.3.23 (fixed in 3.7.34) \| ≥ 4.4, ≤ 4.4.22 (fixed in 3.7.34) \| ≥ 4.5, ≤ 4.5.21 (fixed in 3.7.34) \| ≥ 4.6, ≤ 4.6.18 (fixed in 3.7.34) \| ≥ 4.7, ≤ 4.7.17 (fixed in 3.7.34) \| ≥ 4.8, ≤ 4.8.13 (fixed in 3.7.34) \| ≥ 4.9, ≤ 4.9.14 (fixed in 3.7.34) \| ≥ 5.0, ≤ 5.0.9 (fixed in 3.7.34) \| ≥ 5.1, ≤ 5.1.5 (fixed in 3.7.34) \| ≥ 5.2, ≤ 5.2.6 (fixed in 3.7.34) \| ≥ 5.3, ≤ 5.3.3 (fixed in 3.7.34)
- wordpress wordpress: ≥ 3.7, \< 3.7.34 \| ≥ 3.8, \< 3.8.34 \| ≥ 3.9, \< 3.9.32 \| ≥ 4.0, \< 4.0.31 \| ≥ 4.1, \< 4.1.31 \| ≥ 4.2, \< 4.2.28 \| ≥ 4.3, \< 4.3.24 \| ≥ 4.4, \< 4.4.23 \| ≥ 4.5, \< 4.5.22 \| ≥ 4.6, \< 4.6.19 \| ≥ 4.7, \< 4.7.18 \| ≥ 4.8, \< 4.8.14 \| ≥ 4.9, \< 4.9.15 \| ≥ 5.0, \< 5.0.10 \| ≥ 5.1, \< 5.1.6 \| ≥ 5.2, \< 5.2.7 \| ≥ 5.3.0, \< 5.3.4 \| ≥ 5.4, \< 5.4.2
- wordpress wordpress-develop: ≥ 5.4.0, \< 5.4.2 \| ≥ 5.3.0, \< 5.3.4 \| ≥ 5.2.0, \< 5.2.7 \| ≥ 5.1.0, \< 5.1.6 \| ≥ 5.0.0, \< 5.0.10 \| ≥ 4.9.0, \< 4.9.15 \| ≥ 4.8.0, \< 4.8.14 \| ≥ 4.7.0, \< 4.7.18 \| ≥ 4.6.0, \< 4.6.19 \| ≥ 4.5.0, \< 4.5.22 \| ≥ 4.4.0, \< 4.4.23 \| ≥ 4.3.0, \< 4.3.24 \| ≥ 4.2.0, \< 4.2.28 \| ≥ 4.1.0, \< 4.1.31 \| ≥ 4.0.0, \< 4.0.31 \| ≥ 3.9.0, \< 3.9.32 \| ≥ 3.8.0, \< 3.8.34 \| ≥ 3.7.0, \< 3.7.34

## References

- <https://wordpress.org/news/2020/06/wordpress-5-4-2-security-and-maintenance-release/>
- <https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-87h4-phjv-rm6p>
- <https://github.com/WordPress/wordpress-develop/commit/404f397b4012fd9d382e55bf7d206c1317f01148>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ODNHXVJS25YVWYQHOCICXTLIN5UYJFDN/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/773N2ZV7QEMBGKH6FBKI6Q5S3YJMW357/>
- <https://www.debian.org/security/2020/dsa-4709>
- <https://lists.debian.org/debian-lts-announce/2020/07/msg00000.html>
- <https://lists.debian.org/debian-lts-announce/2020/09/msg00011.html>
- <https://ubuntu.com/security/CVE-2020-4049>
- <https://core.trac.wordpress.org/changeset/47950>
- <https://www.cve.org/CVERecord?id=CVE-2020-4049>
- <https://security-tracker.debian.org/tracker/CVE-2020-4049>
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/92895f8e-59c9-4988-9d7a-2601880d71a2>

---

Data as of 2026-12-05T04:57:59.543Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
