SecurityContext

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

IdName
CWE-80Improper Neutralization of Script-Related HTML Tags in a Web Page

Hackerone

  • Reports: 2
  • Rank: 3806

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/WordPress/wordpress-develop/commit/0977c0d6b241479ecedfe19e96be69f727c3f81fPatch
https://wordpress.org/news/2020/06/wordpress-5-4-2-security-and-maintenance-release/Release Notes, Vendor Advisory
https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-8q2w-5m27-wm27Third Party Advisory
https://lists.debian.org/debian-lts-announce/2020/07/msg00000.htmlMailing List, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2020/09/msg00011.htmlMailing List, Third Party Advisory
https://www.debian.org/security/2020/dsa-4709Mailing List, Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/773N2ZV7QEMBGKH6FBKI6Q5S3YJMW357/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ODNHXVJS25YVWYQHOCICXTLIN5UYJFDN/

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
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

RepositoryLink kindsIndexedUrl
wordpress/wordpress-developcommit, fix, security_advisoryyes/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