cve.bz

CVE-2020-4049 Cross-site Scripting

2.4 lowEPSS 2.5%Fix available

Low (2.4). EPSS 2.5% estimated probability of exploitation activity in the next 30 days.

On this page
In affected versions of WordPress, when uploading themes, the name of the theme folder can be crafted in a way that could lead to JavaScript execution in /wp-admin on the themes page. This does require an admin to upload the theme, and is low severity self-XSS. 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

2.4 low
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N
EPSS
2.5% (unchanged from 2.5% a week ago; 2.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 85th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
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-4049 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-4049?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-4049?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-4049 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:fedora31
fedoraproject:fedora32
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-4049
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 1 morewordpressno fix listedUBUNTU-CVE-2020-4049

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
  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

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

References

Check your stackJSON