Skip to content
CVE Tracker
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API documentationPage
  • MCP serverPage
  • Data sourcesPage
  • ChangelogPage
  • AboutPage
  • How it's builtPage
Back

CVE-2020-4047

Authenticated XSS via media attachment page in WordPress

Medium6.8EPSS 3.3%
Published
Updated
Reserved
Assigned by
GitHub_M

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).

Scores

CVSS scores of CVE-2020-4047, by who scored it
Scored byCVSSScoreVector
GitHub_MCNA (assigner)3.1Medium6.8CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
NVDNVD · Modified3.1Medium6.8CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
EPSS (exploitation in 30 days)
3.3% · top 12% of all CVEs (6 Nov 2026)
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.8.

Weakness

Affected products

  • WordPress · wordpress-develop

    • affected >= 5.4.0, < 5.4.2
    • affected >= 5.3.0, < 5.3.4
    • affected >= 5.2.0, < 5.2.7
    • affected >= 5.1.0, < 5.1.6
    • affected >= 5.0.0, < 5.0.10
    • affected >= 4.9.0, < 4.9.15
    • affected >= 4.8.0, < 4.8.14
    • affected >= 4.7.0, < 4.7.18
    • affected >= 4.6.0, < 4.6.19
    • affected >= 4.5.0, < 4.5.22
    • affected >= 4.4.0, < 4.4.23
    • affected >= 4.3.0, < 4.3.24
    • affected >= 4.2.0, < 4.2.28
    • affected >= 4.1.0, < 4.1.31
    • affected >= 4.0.0, < 4.0.31
    • affected >= 3.9.0, < 3.9.32
    • affected >= 3.8.0, < 3.8.34
    • affected >= 3.7.0, < 3.7.34

References (8)

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2020-4047 badge
[![CVE-2020-4047](https://trackcve.app/badge/CVE-2020-4047.svg)](https://trackcve.app/cve/CVE-2020-4047)

Record last updated .