All reports
Low

WordPress Core < 5.4.2 - Self-Cross Site Scripting via Theme Folder Name

Affected versions

WordPresswordpress
Affected versions
<3.7 || >=3.7 <=3.7.33 || >=3.8 <=3.8.33 || >=3.9 <=3.9.31 || >=4.0 <=4.0.30 || >=4.1 <=4.1.30 || >=4.2 <=4.2.27 || >=4.3 <=4.3.23 || >=4.4 <=4.4.22 || >=4.5 <=4.5.21 || >=4.6 <=4.6.18 || >=4.7 <=4.7.17 || >=4.8 <=4.8.13 || >=4.9 <=4.9.14 || >=5.0 <=5.0.9 || >=5.1 <=5.1.5 || >=5.2 <=5.2.6 || >=5.3 <=5.3.3
Fixed version
3.7.34 · 3.8.34 · 3.9.32 · 4.0.31 · 4.1.31 · 4.2.28 · 4.3.24 · 4.4.23 · 4.5.22 · 4.6.19 · 4.7.18 · 4.8.14 · 4.9.15 · 5.0.10 · 5.1.6 · 5.2.7 · 5.3.4 · 5.4.2

Exploitation

CVE-2020-4049

Probability of exploitation in the next 30 days: 2.53%

FIRST EPSS · 2026-11-22

Description

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

Links

Credits

  • Nrimo Ing Pandum

Data rights and licenses

Wordfence

Copyright 2012-2026 Defiant Inc.

Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy.

License terms

Copyright 1999-2026 The MITRE Corporation

CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.

License terms