cve.bz

CVE-2020-4047

6.8 mediumEPSS 3.3%Fix available

Medium (6.8). EPSS 3.3% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

CVSS 3.1

6.8 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
EPSS
3.3% (unchanged from 3.3% a week ago; 3.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-4047 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-4047?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-4047?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-4047 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
wordpress:wordpressfrom 3.7 before 3.7.34
wordpress:wordpressfrom 3.8 before 3.8.34
wordpress:wordpressfrom 3.9 before 3.9.32
wordpress:wordpressfrom 4.0 before 4.0.31
wordpress:wordpressfrom 4.1 before 4.1.31
wordpress:wordpressfrom 4.2 before 4.2.28
wordpress:wordpressfrom 4.3 before 4.3.24
wordpress:wordpressfrom 4.4 before 4.4.23
wordpress:wordpressfrom 4.5 before 4.5.22
wordpress:wordpressfrom 4.6 before 4.6.19
wordpress:wordpressfrom 4.7 before 4.7.18
wordpress:wordpressfrom 4.8 before 4.8.14
wordpress:wordpressfrom 4.9 before 4.9.15
wordpress:wordpressfrom 5.0 before 5.0.10
wordpress:wordpressfrom 5.1 before 5.1.6
wordpress:wordpressfrom 5.2 before 5.2.7
wordpress:wordpressfrom 5.3.0 before 5.3.4
wordpress:wordpressfrom 5.4 before 5.4.2
fedoraproject:fedora32
fedoraproject:fedora33
debian:debian_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8wordpress4.1.31+dfsg-0+deb8u1DLA-2269-1
Debian9wordpress4.7.18+dfsg-1+deb9u1DLA-2371-1
Debian10wordpress5.0.10+dfsg1-0+deb10u1DSA-4709-1
Debian12, 13, 14wordpress5.4.2+dfsg1-1DEBIAN-CVE-2020-4047
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 1 morewordpressno fix listedUBUNTU-CVE-2020-4047

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-18 XSS Targeting Non-Script Elements Likelihood: High · Severity: Very High
  • CAPEC-32 XSS Through HTTP Query Strings Likelihood: High · Severity: High
  • CAPEC-86 XSS Through HTTP Headers Likelihood: High · Severity: Very High
  • CAPEC-193 PHP Remote File Inclusion Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON