CVE-2020-4047: WordPress - Stored Cross-Site Scripting
- Cve: CVE-2020-4047
- Name: WordPress - Stored Cross-Site Scripting
- 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 (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).
- Impact: Attackers can execute malicious scripts in the context of higher privileged users, potentially leading to session hijacking or privilege escalation.
- Remediation: Update to version 5.4.2 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: logged_in
- Requirements: Attacker needs to be an authenticated user with upload permissions
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
- Epss score: 0.03271
- Epss percentile: 0.88726
- Assignee: [email protected]
- Published at: 2020-06-12T16:15:10Z
- Age in days: 2356
- Modified at: 2026-06-17T03:19:29Z
- Patch available: yes
- References total: 8
- Products total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-4047
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
Cwe
| Id | Name |
|---|---|
| CWE-80 | Improper Neutralization of Script-Related HTML Tags in a Web Page |
Hackerone
- Reports: 2
- Rank: 3806
References
Same in every row:
- Source: nvd
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| wordpress:wordpress | >= 5.4, < 5.4.2; >= 5.3.0, < 5.3.4; >= 5.2, < 5.2.7; >= 5.1, < 5.1.6; >= 5.0, < 5.0.10; >= 4.9, < 4.9.15; >= 4.8, < 4.8.14; >= 4.7, < 4.7.18; >= 4.6, < 4.6.19; >= 4.5, < 4.5.22; >= 4.4, < 4.4.23; >= 4.3, < 4.3.24; >= 4.2, < 4.2.28; >= 4.1, < 4.1.31; >= 4.0, < 4.0.31; >= 3.9, < 3.9.32; >= 3.8, < 3.8.34; >= 3.7, < 3.7.34 | /v1/products/wordpress/wordpress |
| debian:debian_linux | = 10.0, = 9.0, = 8.0 | /v1/products/debian/debian_linux |
| fedoraproject:fedora | = 33, = 32 | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| wordpress/wordpress-develop | commit, fix, security_advisory | yes | /v1/repositories/wordpress/wordpress-develop |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Hackerone reports: 2
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since