CVE-2020-4047: 
NixOS vulnerability analysis and mitigation

Overview

CVE-2020-4047 affects WordPress versions 3.7 through 5.4.1, where authenticated users with upload permissions (like authors) can inject JavaScript into media file attachment pages. The vulnerability was discovered by Luigi (gubello.me) and was patched in WordPress version 5.4.2, along with backported fixes for all affected versions (WordPress News, GitHub Advisory).

Technical details

The vulnerability allows authenticated users with upload permissions to inject JavaScript code into media file attachment pages in a specific way. When these compromised media files are viewed by users with higher privileges, the injected JavaScript executes in their security context (WPScan).

Impact

When exploited, this vulnerability can lead to script execution in the context of higher privileged users when they view the compromised media file attachment pages. This could potentially allow attackers to perform actions with elevated privileges (GitHub Advisory).

Exploitability

The vulnerability requires an authenticated user account with upload permissions (such as an author role) to exploit. The attacker must be able to upload media files to the WordPress installation (WPScan).

Mitigation and workarounds

The vulnerability was fixed in WordPress 5.4.2, with security patches also backported to earlier versions (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). Users should upgrade to these patched versions to protect against this vulnerability (WordPress News).

Additional resources


Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-106627HIGH7.5
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-105902HIGH7.5
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-104345HIGH7.5
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-103297HIGH7.5
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-103820MEDIUM5.5
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management