CVE-2020-4047
CVE-2020-4047 — Authenticated XSS via media attachment page in WordPress
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 (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
6.8
MEDIUM
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 |
|---|---|---|---|---|---|
| 6.8 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-80
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-8q2w-5m27-wm27
x_refsource_CONFIRM
- github.com/WordPress/wordpress-develop/commit/0977c0d6b241479ecedfe19e96be69f727c3f81f
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.