CVE-2020-4049
CVE-2020-4049 — Authenticated self-XSS via theme uploads in WordPress
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 Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
3%
chance of exploitation in 30 days
CVSS base
2.4
LOW
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 2.4 | CVSS 3.1 | LOW | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-80
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /wp-admin.
References
8 on the record
- wordpress.org/news/2020/06/wordpress-5-4-2-security-and-maintenance-release/
x_refsource_MISC
- github.com/WordPress/wordpress-develop/security/advisories/GHSA-87h4-phjv-rm6p
x_refsource_CONFIRM
- github.com/WordPress/wordpress-develop/commit/404f397b4012fd9d382e55bf7d206c1317f01148
x_refsource_MISC
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ODNHXVJS25YVWYQHOCICXTLIN5UYJFDN/
vendor-advisory, x_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/773N2ZV7QEMBGKH6FBKI6Q5S3YJMW357/
vendor-advisory, x_refsource_FEDORA
- www.debian.org/security/2020/dsa-4709
vendor-advisory, x_refsource_DEBIAN
- lists.debian.org/debian-lts-announce/2020/07/msg00000.html
mailing-list, x_refsource_MLIST
- lists.debian.org/debian-lts-announce/2020/09/msg00011.html
mailing-list, x_refsource_MLIST
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2022-21661 SQL injection in WordPressCVSS 7.5
- CVE-2020-13965 Roundcube Webmail Cross-Site Scripting (XSS) VulnerabilityCVSS 6.1 · CISA KEV
- CVE-2018-19953 QNAP NAS File Station Cross-Site Scripting VulnerabilityCVSS 6.1 · CISA KEV
- CVE-2018-19943 QNAP NAS File Station Cross-Site Scripting VulnerabilityCVSS 5.4 · CISA KEV
- CVE-2026-3859 XSS Vulnerability in OpenText VibeCVSS 7.4
- CVE-2026-42694 WordPress Kirki plugin <= 6.4.0 - Content Injection vulnerabilityCVSS 4.3
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.