CVEMETERBack to radar
OFFICIAL RECORD · WordPress

CVE-2020-4049

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 2.4 · low

Authenticated self-XSS via theme uploads in WordPress

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

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 2.530% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T15:55:09.885Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 2.4 · published by GitHub_M
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N
Assessment source · checked 2026-11-19T10:45:41.612Z

CVSS 3.1 · 2.4 · published by Ubuntu Security
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N
Assessment source · checked 2026-11-19T14:19:33.566Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T15:55:09.885ZCISA KEV
cvssverified2026-11-19T10:45:41.612ZCVE Program
epssverified2026-11-19T16:04:28.860ZFIRST EPSS
patchesverified2026-11-19T14:19:33.566ZUbuntu Security
affectedverified2026-11-19T10:45:41.612ZCVE Program
lifecycleverified2026-11-19T10:45:41.612ZCVE Program

Affected versions and configuration

WordPress wordpress-develop; default status: unknown: >= 5.4.0, < 5.4.2 [affected; scheme: unspecified]; >= 5.3.0, < 5.3.4 [affected; scheme: unspecified]; >= 5.2.0, < 5.2.7 [affected; scheme: unspecified]; >= 5.1.0, < 5.1.6 [affected; scheme: unspecified]; >= 5.0.0, < 5.0.10 [affected; scheme: unspecified]; >= 4.9.0, < 4.9.15 [affected; scheme: unspecified]; >= 4.8.0, < 4.8.14 [affected; scheme: unspecified]; >= 4.7.0, < 4.7.18 [affected; scheme: unspecified]; >= 4.6.0, < 4.6.19 [affected; scheme: unspecified]; >= 4.5.0, < 4.5.22 [affected; scheme: unspecified]; >= 4.4.0, < 4.4.23 [affected; scheme: unspecified]; >= 4.3.0, < 4.3.24 [affected; scheme: unspecified]; >= 4.2.0, < 4.2.28 [affected; scheme: unspecified]; >= 4.1.0, < 4.1.31 [affected; scheme: unspecified]; >= 4.0.0, < 4.0.31 [affected; scheme: unspecified]; >= 3.9.0, < 3.9.32 [affected; scheme: unspecified]; >= 3.8.0, < 3.8.34 [affected; scheme: unspecified]; >= 3.7.0, < 3.7.34 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "wordpress",
    "debian": "https://tracker.debian.org/pkg/wordpress",
    "source": "https://ubuntu.com/security/cve?package=wordpress",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=wordpress",
    "statuses": [
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "xenial"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "6.0+dfsg1-1ubuntu1",
        "release_codename": "stonking"
      },
      {
        "pocket": "security",
        "status": "ignored",
        "component": null,
        "description": "end of life, was needs-triage",
        "release_codename": "kinetic"
      },
      {
        "pocket": "security",
        "status": "ignored",
        "component": null,
        "description": "end of life",
        "release_codename": "hirsute"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "ignored",
        "component": null,
        "description": "end of life",
        "release_codename": "eoan"
      },
      {
        "pocket": "security",
        "status": "ignored",
        "component": null,
        "description": "end of life",
        "release_codename": "groovy"
      },
      {
        "pocket": "security",
        "status": "ignored",
        "component": null,
        "description": "end of life",
        "release_codename": "impish"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "6.0+dfsg1-1ubuntu1",
        "release_codename": "lunar"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "trusty"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "5.4.2+dfsg1-1",
        "release_codename": "upstream"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "bionic"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "focal"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "6.0+dfsg1-1ubuntu1",
        "release_codename": "mantic"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "6.0+dfsg1-1ubuntu1",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "6.0+dfsg1-1ubuntu1",
        "release_codename": "oracular"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "6.0+dfsg1-1ubuntu1",
        "release_codename": "plucky"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "6.0+dfsg1-1ubuntu1",
        "release_codename": "questing"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "6.0+dfsg1-1ubuntu1",
        "release_codename": "resolute"
      }
    ]
  }
]
Archived source JSON
CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "WordPress",
      "product": "wordpress-develop",
      "versions": [
        {
          "status": "affected",
          "version": ">= 5.4.0, < 5.4.2"
        },
        {
          "status": "affected",
          "version": ">= 5.3.0, < 5.3.4"
        },
        {
          "status": "affected",
          "version": ">= 5.2.0, < 5.2.7"
        },
        {
          "status": "affected",
          "version": ">= 5.1.0, < 5.1.6"
        },
        {
          "status": "affected",
          "version": ">= 5.0.0, < 5.0.10"
        },
        {
          "status": "affected",
          "version": ">= 4.9.0, < 4.9.15"
        },
        {
          "status": "affected",
          "version": ">= 4.8.0, < 4.8.14"
        },
        {
          "status": "affected",
          "version": ">= 4.7.0, < 4.7.18"
        },
        {
          "status": "affected",
          "version": ">= 4.6.0, < 4.6.19"
        },
        {
          "status": "affected",
          "version": ">= 4.5.0, < 4.5.22"
        },
        {
          "status": "affected",
          "version": ">= 4.4.0, < 4.4.23"
        },
        {
          "status": "affected",
          "version": ">= 4.3.0, < 4.3.24"
        },
        {
          "status": "affected",
          "version": ">= 4.2.0, < 4.2.28"
        },
        {
          "status": "affected",
          "version": ">= 4.1.0, < 4.1.31"
        },
        {
          "status": "affected",
          "version": ">= 4.0.0, < 4.0.31"
        },
        {
          "status": "affected",
          "version": ">= 3.9.0, < 3.9.32"
        },
        {
          "status": "affected",
          "version": ">= 3.8.0, < 3.8.34"
        },
        {
          "status": "affected",
          "version": ">= 3.7.0, < 3.7.34"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://wordpress.org/news/2020/06/wordpress-5-4-2-security-and-maintenance-release/",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-87h4-phjv-rm6p",
          "tags": [
            "x_refsource_CONFIRM",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/WordPress/wordpress-develop/commit/404f397b4012fd9d382e55bf7d206c1317f01148",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ODNHXVJS25YVWYQHOCICXTLIN5UYJFDN/",
          "name": "FEDORA-2020-8447a3e195",
          "tags": [
            "vendor-advisory",
            "x_refsource_FEDORA",
            "x_transferred"
          ]
        },
        {
          "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/773N2ZV7QEMBGKH6FBKI6Q5S3YJMW357/",
          "name": "FEDORA-2020-bbedd29391",
          "tags": [
            "vendor-advisory",
            "x_refsource_FEDORA",
            "x_transferred"
          ]
        },
        {
          "url": "https://www.debian.org/security/2020/dsa-4709",
          "name": "DSA-4709",
          "tags": [
            "vendor-advisory",
            "x_refsource_DEBIAN",
            "x_transferred"
          ]
        },
        {
          "url": "https://lists.debian.org/debian-lts-announce/2020/07/msg00000.html",
          "name": "[debian-lts-announce] 20200701 [SECURITY] [DLA 2269-1] wordpress security update",
          "tags": [
            "mailing-list",
            "x_refsource_MLIST",
            "x_transferred"
          ]
        },
        {
          "url": "https://lists.debian.org/debian-lts-announce/2020/09/msg00011.html",
          "name": "[debian-lts-announce] 20200911 [SECURITY] [DLA 2371-1] wordpress security update",
          "tags": [
            "mailing-list",
            "x_refsource_MLIST",
            "x_transferred"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2024-08-04T07:52:20.760Z"
      }
    }
  ]
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
upstream-releaseupstream / upstreamwordpressNot a distribution channel5.4.2+dfsg1-1Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history