{"id":"CVE-2020-4047","aliases":["BIT-wordpress-2020-4047","BIT-wordpress-multisite-2020-4047","DEBIAN-CVE-2020-4047","DLA-2269-1","DLA-2371-1","DSA-4709-1","EUVD-2020-25305","GHSA-8q2w-5m27-wm27","UBUNTU-CVE-2020-4047"],"status":"published","title":"Authenticated XSS via media attachment page in WordPress","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).","severity":{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.03271,"percentile":0.88495,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-80"],"published":"2020-06-12T16:00:36Z","modified":"2026-10-26T12:01:53Z","fixes":[{"ecosystem":"Bitnami","package":"wordpress","fixed_in":["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"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"wordpress-multisite","fixed_in":["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"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"wordpress","fixed_in":["5.4.2+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"wordpress","fixed_in":["5.4.2+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"wordpress","fixed_in":["5.4.2+dfsg1-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Bitnami","package":"wordpress","ranges":[{"type":"SEMVER","events":[{"introduced":"3.7.0"},{"fixed":"3.7.34"},{"introduced":"3.8.0"},{"fixed":"3.8.34"},{"introduced":"3.9.0"},{"fixed":"3.9.32"},{"introduced":"4.0.0"},{"fixed":"4.0.31"},{"introduced":"4.1.0"},{"fixed":"4.1.31"},{"introduced":"4.2.0"},{"fixed":"4.2.28"},{"introduced":"4.3.0"},{"fixed":"4.3.24"},{"introduced":"4.4.0"},{"fixed":"4.4.23"},{"introduced":"4.5.0"},{"fixed":"4.5.22"},{"introduced":"4.6.0"},{"fixed":"4.6.19"},{"introduced":"4.7.0"},{"fixed":"4.7.18"},{"introduced":"4.8.0"},{"fixed":"4.8.14"},{"introduced":"4.9.0"},{"fixed":"4.9.15"},{"introduced":"5.0.0"},{"fixed":"5.0.10"},{"introduced":"5.1.0"},{"fixed":"5.1.6"},{"introduced":"5.2.0"},{"fixed":"5.2.7"},{"introduced":"5.3.0"},{"fixed":"5.3.4"},{"introduced":"5.4.0"},{"fixed":"5.4.2"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"wordpress-multisite","ranges":[{"type":"SEMVER","events":[{"introduced":"3.7.0"},{"fixed":"3.7.34"},{"introduced":"3.8.0"},{"fixed":"3.8.34"},{"introduced":"3.9.0"},{"fixed":"3.9.32"},{"introduced":"4.0.0"},{"fixed":"4.0.31"},{"introduced":"4.1.0"},{"fixed":"4.1.31"},{"introduced":"4.2.0"},{"fixed":"4.2.28"},{"introduced":"4.3.0"},{"fixed":"4.3.24"},{"introduced":"4.4.0"},{"fixed":"4.4.23"},{"introduced":"4.5.0"},{"fixed":"4.5.22"},{"introduced":"4.6.0"},{"fixed":"4.6.19"},{"introduced":"4.7.0"},{"fixed":"4.7.18"},{"introduced":"4.8.0"},{"fixed":"4.8.14"},{"introduced":"4.9.0"},{"fixed":"4.9.15"},{"introduced":"5.0.0"},{"fixed":"5.0.10"},{"introduced":"5.1.0"},{"fixed":"5.1.6"},{"introduced":"5.2.0"},{"fixed":"5.2.7"},{"introduced":"5.3.0"},{"fixed":"5.3.4"},{"introduced":"5.4.0"},{"fixed":"5.4.2"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.2+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.2+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.2+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:8","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.31+dfsg-0+deb8u1"}]}],"versions":["4.1+dfsg-1","4.1+dfsg-1+deb8u1","4.1+dfsg-1+deb8u10","4.1+dfsg-1+deb8u11","4.1+dfsg-1+deb8u12","4.1+dfsg-1+deb8u13","4.1+dfsg-1+deb8u14","4.1+dfsg-1+deb8u15","4.1+dfsg-1+deb8u16","4.1+dfsg-1+deb8u17","4.1+dfsg-1+deb8u18","4.1+dfsg-1+deb8u2","4.1+dfsg-1+deb8u3","4.1+dfsg-1+deb8u4","4.1+dfsg-1+deb8u5","4.1+dfsg-1+deb8u6","4.1+dfsg-1+deb8u7","4.1+dfsg-1+deb8u8","4.1+dfsg-1+deb8u9","4.1.1+dfsg-1","4.1.25+dfsg-1+deb8u1","4.1.26+dfsg-1+deb8u1","4.1.27+dfsg-0+deb8u1","4.1.28+dfsg-0+deb8u1","4.1.29+dfsg-0+deb8u1","4.1.30+dfsg-0+deb8u1"],"bundled":4},{"source":"osv","ecosystem":"Debian:9","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.18+dfsg-1+deb9u1"}]}],"versions":["4.7.5+dfsg-2","4.7.5+dfsg-2+deb9u1","4.7.5+dfsg-2+deb9u1~bpo8+1","4.7.5+dfsg-2+deb9u2","4.7.5+dfsg-2+deb9u2~bpo8+1","4.7.5+dfsg-2+deb9u3","4.7.5+dfsg-2+deb9u4","4.7.5+dfsg-2+deb9u5","4.7.5+dfsg-2+deb9u6"],"bundled":6},{"source":"osv","ecosystem":"Debian:10","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.10+dfsg1-0+deb10u1"}]}],"versions":["5.0.4+dfsg1-1","5.0.4+dfsg1-1+deb10u1","5.0.4+dfsg1-1+deb10u2"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3+dfsg-1","4.3.1+dfsg-1","4.4+dfsg-1","4.4.1+dfsg-1","4.4.2+dfsg-1","4.4.2+dfsg-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.8.2+dfsg-2","4.8.3+dfsg-1","4.9.1+dfsg-1","4.9.2+dfsg-1","4.9.4+dfsg-1","4.9.5+dfsg1-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.2.2+dfsg1-1","5.2.4+dfsg1-1","5.3.2+dfsg1-1","5.3.2+dfsg1-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.7.1+dfsg1-2ubuntu1","5.8.1+dfsg1-2ubuntu1","5.8.2+dfsg1-1ubuntu1","5.8.3+dfsg1-1ubuntu1","5.8.3+dfsg1-1ubuntu1.1"]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"fedoraproject","product":"fedora"},{"vendor":"wordpress","product":"wordpress"},{"vendor":"wordpress","product":"wordpress-develop"}],"references":[{"url":"https://wordpress.org/news/2020/06/wordpress-5-4-2-security-and-maintenance-release/","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory","advisory","report"]},{"url":"https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-8q2w-5m27-wm27","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://github.com/WordPress/wordpress-develop/commit/0977c0d6b241479ecedfe19e96be69f727c3f81f","tags":["x_refsource_MISC","x_transferred","Patch","fix","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ODNHXVJS25YVWYQHOCICXTLIN5UYJFDN/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/773N2ZV7QEMBGKH6FBKI6Q5S3YJMW357/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://www.debian.org/security/2020/dsa-4709","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/07/msg00000.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/09/msg00011.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-4047","tags":["web"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-4047","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-4047","tags":["report"]},{"url":"https://core.trac.wordpress.org/changeset/47948","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-4047","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2020-4047","title":"Authenticated XSS via media attachment page in WordPress","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).","status":"published","published":"2020-06-12T16:00:36Z","modified":"2024-08-04T07:52:20.835Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-80"],"updated_at":"2026-11-02T14:35:56.213477Z"}],"euvd":[{"id":"EUVD-2020-25305","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).","status":"published","published":"2020-06-12T16:00:36Z","modified":"2024-08-04T07:52:20Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-03T03:08:07.872525Z"}],"nvd":[{"id":"CVE-2020-4047","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).","status":"published","published":"2020-06-12T16:15:10.543Z","modified":"2026-06-17T03:19:29.02Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-80"],"updated_at":"2026-11-02T14:06:07.249892Z"}],"osv":[{"id":"CVE-2020-4047","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).","status":"published","published":"2020-06-12T16:15:10.543Z","modified":"2026-11-08T02:45:17.147403722Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-08T02:57:30.447698Z"},{"id":"DEBIAN-CVE-2020-4047","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).","status":"published","published":"2020-06-12T16:15:10.543Z","modified":"2026-10-26T12:01:53.600315255Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:34.019707Z"},{"id":"UBUNTU-CVE-2020-4047","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).","status":"published","published":"2020-06-12T16:15:00Z","modified":"2025-10-24T04:48:16Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","level":"medium"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:25.179924Z"},{"id":"BIT-wordpress-2020-4047","title":"Authenticated XSS via media attachment page in WordPress","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).","status":"published","published":"2024-03-06T11:11:09.281Z","modified":"2026-09-08T08:48:22.454650006Z","updated_at":"2026-11-02T15:28:36.455807Z"},{"id":"BIT-wordpress-multisite-2020-4047","title":"Authenticated XSS via media attachment page in WordPress","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).","status":"published","published":"2024-03-06T11:10:57.188Z","modified":"2026-09-08T08:48:21.821314878Z","updated_at":"2026-11-02T15:28:36.455807Z"},{"id":"DLA-2269-1","title":"wordpress - security update","status":"published","published":"2020-07-01T00:00:00Z","modified":"2026-03-09T01:22:30.294878Z","updated_at":"2026-11-02T15:46:10.227108Z"},{"id":"DLA-2371-1","title":"wordpress - security update","status":"published","published":"2020-09-11T00:00:00Z","modified":"2026-03-09T01:23:03.146832Z","updated_at":"2026-11-02T15:46:10.712745Z"},{"id":"DSA-4709-1","title":"wordpress - security update","status":"published","published":"2020-06-23T00:00:00Z","modified":"2026-03-09T02:11:37.433596Z","updated_at":"2026-11-02T15:46:17.19998Z"}]}}
