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

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2020-4049
CVSS Low (2.4)
Publicly Published June 10, 2020
Last Updated May 31, 2024
Researcher Nrimo Ing Pandum
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).

References

1 affected software package

Software Type Core
Software Slug wordpress (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 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
Patched 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
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: 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 Detail.