WordPress core
CVE-2020-4047
WordPress: Authenticated XSS via media attachment page
- Severity
- Medium 6.8
- 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-8q2w-5m27-wm27
- Sources
- NVD, WordPress
Description
In affected versions of WordPress, authenticated users with upload permissions (like authors) are able to inject JavaScript into some media file attachment pages in a certain way. This can lead to script execution in the context of a higher privileged user when the file is viewed by them. This has been patched in version 5.4.2, along with all the previously affected versions via a minor release…
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-4047
- CVE.org https://www.cve.org/CVERecord?id=CVE-2020-4047
- GitHub Advisory Database https://github.com/advisories/GHSA-8q2w-5m27-wm27
- WordPress security advisory https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-8q2w-5m27-wm27