WordPress Core < 5.4.2 - Authenticated Stored Cross-Site Scripting

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2020-4047
CVSS Medium (6.8)
Publicly Published June 10, 2020
Last Updated January 22, 2024
Researcher Luigi Gubello
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).

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.