WordPress core
CVE-2020-4049
WordPress: Authenticated self-XSS via theme uploads
- Severity
- Low 2.4
- Published
- 12 Jun 2020
- Last changed
- 17 Jun 2026
- Added to UpHeron
- 17 Oct 2026
- Fixed in
- 4.9.15, 5.0.10, 5.1.6, 5.2.7, 5.3.4, 5.4.2
- Also known as
- GHSA-87h4-phjv-rm6p
- Sources
- NVD, 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,…
Affected software
| Software | Affected versions |
|---|---|
WordPressWordPress core · cpe:a:wordpress:wordpress |
All 19 release lines
|
References
- NVD https://nvd.nist.gov/vuln/detail/CVE-2020-4049
- CVE.org https://www.cve.org/CVERecord?id=CVE-2020-4049
- GitHub Advisory Database https://github.com/advisories/GHSA-87h4-phjv-rm6p
- WordPress security advisory https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-87h4-phjv-rm6p