Authenticated XSS via media attachment page in WordPress

MonitorData or code tampering over the network by a logged-in user.
6.8MEDIUM

CVE-2020-4047

Key Information:

Vendor

WordPress

CVE ID
CVE ID:
CVE-2020-4047
Vendor
CVE Published:
12 June 2020
Fixed in
Fixed in:
5.4.0, 5.4.2, 5.3.0, 5.3.4, 5.2.0, 5.2.7 +15 more

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Partly: Works over the network, but needs a login
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Monitor

Low risk for most. Patch in your normal cycle.

What to do

1Update to a fixed version
wordpress-develop >= 5.4.0, < 5.4.2 to below 5.4.0, 5.4.2 is vulnerable
wordpress-develop >= 5.3.0, < 5.3.4 to below 5.3.0, 5.3.4 is vulnerable
wordpress-develop >= 5.2.0, < 5.2.7 to below 5.2.0, 5.2.7 is vulnerable
wordpress-develop >= 5.1.0, < 5.1.6 to below 5.1.0, 5.1.6 is vulnerable
wordpress-develop >= 5.0.0, < 5.0.10 to below 5.0.0, 5.0.10 is vulnerable
wordpress-develop >= 4.9.0, < 4.9.15 to below 4.9.0, 4.9.15 is vulnerable

Install the wordpress-develop release that fixes your version line, or later:

5.4.0, 5.4.25.3.0, 5.3.45.2.0, 5.2.75.1.0, 5.1.65.0.0, 5.0.104.9.0, 4.9.154.8.0, 4.8.144.7.0, 4.7.184.6.0, 4.6.194.5.0, 4.5.22+8 more
Read the vendor advisory ↗
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach wordpress-develop. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Monitor"
  • Its CVSS severity is medium (6.8).

What is CVE-2020-4047?

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

SQL Injection Vulnerability in Hello Clever Gateway for WooCommerce by Hello Clever Pty

CVE-2026-136113
WordPressHello Clever Gateway F...9.3CRITICAL

Object Injection in Ultimate Member

CVE-2026-134481
WordPressUltimate Member😄9.8CRITICAL

Unauthorized Password Reset in User Registration Aide Plugin for WordPress

CVE-2026-121385
WordPressUser Registration Aide👾9.8CRITICAL
View more WordPress vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

CVSS V3.1

Score:
6.8
Severity:
MEDIUM
Confidentiality:
None
Integrity:
High
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
Required
Scope:
Changed
.