CVE-2020-4047
Authenticated XSS via media attachment page in WordPress
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).
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 3.271% · 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-19T16:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 6.8 · published by GitHub_MCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
Assessment source · checked 2026-11-19T10:45:41.377Z
CVSS 3.1 · 6.8 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
Assessment source · checked 2026-11-19T14:19:33.566Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T10:45:41.377Z | CVE Program |
| epss | verified | 2026-11-19T16:04:28.860Z | FIRST EPSS |
| patches | verified | 2026-11-19T14:19:33.566Z | Ubuntu Security |
| affected | verified | 2026-11-19T10:45:41.377Z | CVE Program |
| lifecycle | verified | 2026-11-19T10:45:41.377Z | CVE 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§ion=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",
"release_codename": "groovy"
},
{
"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": "impish"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life",
"release_codename": "eoan"
},
{
"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": "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": "needs-triage",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "6.0+dfsg1-1ubuntu1",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "6.0+dfsg1-1ubuntu1",
"release_codename": "questing"
}
]
}
]Archived source JSONCVE 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-8q2w-5m27-wm27",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/WordPress/wordpress-develop/commit/0977c0d6b241479ecedfe19e96be69f727c3f81f",
"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.835Z"
}
}
]
}Archived source JSONCorrection 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 type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| upstream-release | upstream / upstream | wordpress | Not a distribution channel | 5.4.2+dfsg1-1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T10:45:41.377ZArchived source JSON
Source publication: 2020-06-12T16:00:36.000Z
Source modification: 2024-08-04T07:52:20.835ZDocument fingerprint
d08fb58c86abe31bbc916aa8940696a6ef10b9de1afbe32219531c2f60f27a5d - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - Ubuntu SecurityConsulted: 2026-11-19T14:19:33.566ZArchived source JSON
Source publication: 2020-06-12T16:15:00.000Z
Source modification: 2025-08-26T12:26:12.553ZDocument fingerprint
ba3610f96f78b00b4acfd930e123a6629f745b04f491638c6e06c14910934e79 - FIRST EPSSConsulted: 2026-11-19T16:04:28.860ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
f5c8827616eb2ca04211842edac88756217214ce2eeb1487530f7c0502297196
Official status history
- UNKNOWN → PUBLISHED · · evidence