{"id":"CVE-2021-30154","aliases":["BIT-mediawiki-2021-30154","DEBIAN-CVE-2021-30154","UBUNTU-CVE-2021-30154"],"summary":"An issue was discovered in MediaWiki before 1.31.12 and 1.32.x through 1.35.x before 1.35.2.","published_at":"2021-03-22T00:00:00Z","modified_at":"2026-10-23T18:02:52.089579Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"medium","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.013009999878704548,"percentile":0.7107800245285034,"date":"2026-11-19T00:00:00Z"},"priority":7.6,"details":"An issue was discovered in MediaWiki before 1.31.12 and 1.32.x through 1.35.x before 1.35.2. On Special:NewFiles, all the mediastatistics-header-* messages are output in HTML unescaped, leading to XSS.","affected_stack":[{"ecosystem":"Red Hat:openshift:3.11","package":"mediawiki","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-30154","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"mediawiki-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-30154","relation":"self"},{"ecosystem":"Red Hat:openshift:4","package":"mediawiki","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-30154","relation":"self"},{"ecosystem":"Red Hat:openshift:4","package":"mediawiki-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-30154","relation":"self"}],"affected_other":[{"ecosystem":"Bitnami","package":"mediawiki","purl":"pkg:bitnami/mediawiki","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.31.12"},{"introduced":"1.32.0"},{"fixed":"1.35.2"}]}],"fixed":["1.31.12","1.35.2"],"provider":"osv","source":"BIT-mediawiki-2021-30154","relation":"self"},{"ecosystem":"Debian:10","package":"mediawiki","purl":"pkg:deb/debian/mediawiki?arch=source&distro=buster","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.31.14-1~deb10u1"}]}],"versions":["1:1.31.10-1~deb10u1","1:1.31.12-1~deb10u1","1:1.31.2-1","1:1.31.4-1","1:1.31.4-1~deb10u1","1:1.31.5-1","1:1.31.5-2","1:1.31.5-3","1:1.31.6-1","1:1.31.6-1~deb10u1","1:1.31.7-1","1:1.31.7-1~deb10u1","1:1.31.8-1"],"fixed":["1:1.31.14-1~deb10u1"],"provider":"osv","source":"DSA-4889-1","relation":"upstream"},{"ecosystem":"Debian:12","package":"mediawiki","purl":"pkg:deb/debian/mediawiki?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.35.2-1"}]}],"fixed":["1:1.35.2-1"],"provider":"osv","source":"DEBIAN-CVE-2021-30154","relation":"self"},{"ecosystem":"Debian:13","package":"mediawiki","purl":"pkg:deb/debian/mediawiki?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.35.2-1"}]}],"fixed":["1:1.35.2-1"],"provider":"osv","source":"DEBIAN-CVE-2021-30154","relation":"self"},{"ecosystem":"Debian:14","package":"mediawiki","purl":"pkg:deb/debian/mediawiki?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.35.2-1"}]}],"fixed":["1:1.35.2-1"],"provider":"osv","source":"DEBIAN-CVE-2021-30154","relation":"self"},{"ecosystem":"NVD","package":"debian:debian_linux","versions":["10.0"],"provider":"nvd","source":"CVE-2021-30154","relation":"self"},{"ecosystem":"NVD","package":"fedoraproject:fedora","versions":["33","34"],"provider":"nvd","source":"CVE-2021-30154","relation":"self"},{"ecosystem":"NVD","package":"mediawiki:mediawiki","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31.12"}]},{"type":"ECOSYSTEM","events":[{"introduced":"1.32.0"},{"fixed":"1.35.2"}]}],"fixed":["1.31.12","1.35.2"],"provider":"nvd","source":"CVE-2021-30154","relation":"self"},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"mediawiki","purl":"pkg:deb/ubuntu/mediawiki?arch=source&distro=esm-apps%2Ffocal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.31.2-1ubuntu1","1:1.31.5-1","1:1.31.5-1ubuntu1","1:1.31.5-2","1:1.31.5-3","1:1.31.5-3ubuntu1","1:1.31.6-1","1:1.31.7-1","1:1.31.7-1ubuntu0.1~esm1"],"provider":"osv","source":"UBUNTU-CVE-2021-30154","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 3.11","cpe":"cpe:/a:redhat:openshift:3.11","status":"affected","packages":["mediawiki","mediawiki-doc"],"package_count":2,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2021-30154"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"affected","packages":["mediawiki","mediawiki-doc"],"package_count":2,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2021-30154"}],"records":[{"provider":"osv","source_id":"DSA-4889-1","relation":"upstream","url":"https://osv.dev/vulnerability/DSA-4889-1","published_at":"2021-04-10T00:00:00Z","modified_at":"2026-11-20T01:19:04.68122Z","summary":"mediawiki - security update","severity":[],"affected":[{"ecosystem":"Debian:10","package":"mediawiki","purl":"pkg:deb/debian/mediawiki?arch=source&distro=buster","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.31.14-1~deb10u1"}]}],"versions":["1:1.31.10-1~deb10u1","1:1.31.12-1~deb10u1","1:1.31.2-1","1:1.31.4-1","1:1.31.4-1~deb10u1","1:1.31.5-1","1:1.31.5-2","1:1.31.5-3","1:1.31.6-1","1:1.31.6-1~deb10u1","1:1.31.7-1","1:1.31.7-1~deb10u1","1:1.31.8-1"],"fixed":["1:1.31.14-1~deb10u1"],"provider":"osv","source":"DSA-4889-1","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2021-30154","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2021-30154","license":"CC-BY-4.0","published_at":"2021-04-06T06:43:51Z","modified_at":"2024-08-03T22:24:59.636Z","summary":"An issue was discovered in MediaWiki before 1.31.12 and 1.32.x through 1.35.x before 1.35.2.","details":"An issue was discovered in MediaWiki before 1.31.12 and 1.32.x through 1.35.x before 1.35.2. On Special:NewFiles, all the mediastatistics-header-* messages are output in HTML unescaped, leading to XSS.","severity":[],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://phabricator.wikimedia.org/T278014"},{"type":"ADVISORY","url":"https://www.debian.org/security/2021/dsa-4889"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/26UJGHF7LJDOCQN6A3Z4PM7PYRKENJHE/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2OMSV7B2TCFBOCICN3B4SMQP5HVRJQIT/"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202107-40"}]},{"provider":"nvd","source_id":"CVE-2021-30154","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-30154","severity":[],"affected":[{"ecosystem":"NVD","package":"debian:debian_linux","versions":["10.0"],"provider":"nvd","source":"CVE-2021-30154","relation":"self"},{"ecosystem":"NVD","package":"fedoraproject:fedora","versions":["33","34"],"provider":"nvd","source":"CVE-2021-30154","relation":"self"},{"ecosystem":"NVD","package":"mediawiki:mediawiki","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31.12"}]},{"type":"ECOSYSTEM","events":[{"introduced":"1.32.0"},{"fixed":"1.35.2"}]}],"fixed":["1.31.12","1.35.2"],"provider":"nvd","source":"CVE-2021-30154","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"BIT-mediawiki-2021-30154","relation":"self","url":"https://osv.dev/vulnerability/BIT-mediawiki-2021-30154","license":"Apache-2.0","published_at":"2024-03-06T11:12:51.082Z","modified_at":"2025-04-03T14:40:37.652Z","details":"An issue was discovered in MediaWiki before 1.31.12 and 1.32.x through 1.35.x before 1.35.2. On Special:NewFiles, all the mediastatistics-header-* messages are output in HTML unescaped, leading to XSS.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"BIT-mediawiki-2021-30154"}],"affected":[{"ecosystem":"Bitnami","package":"mediawiki","purl":"pkg:bitnami/mediawiki","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.31.12"},{"introduced":"1.32.0"},{"fixed":"1.35.2"}]}],"fixed":["1.31.12","1.35.2"],"provider":"osv","source":"BIT-mediawiki-2021-30154","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/26UJGHF7LJDOCQN6A3Z4PM7PYRKENJHE/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2OMSV7B2TCFBOCICN3B4SMQP5HVRJQIT/"},{"type":"WEB","url":"https://phabricator.wikimedia.org/T278014"},{"type":"WEB","url":"https://security.gentoo.org/glsa/202107-40"},{"type":"WEB","url":"https://www.debian.org/security/2021/dsa-4889"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-30154"}]},{"provider":"osv","source_id":"DEBIAN-CVE-2021-30154","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2021-30154","published_at":"2021-04-06T07:15:12.357Z","modified_at":"2026-10-23T18:02:52.089579Z","details":"An issue was discovered in MediaWiki before 1.31.12 and 1.32.x through 1.35.x before 1.35.2. On Special:NewFiles, all the mediastatistics-header-* messages are output in HTML unescaped, leading to XSS.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"DEBIAN-CVE-2021-30154"}],"affected":[{"ecosystem":"Debian:12","package":"mediawiki","purl":"pkg:deb/debian/mediawiki?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.35.2-1"}]}],"fixed":["1:1.35.2-1"],"provider":"osv","source":"DEBIAN-CVE-2021-30154","relation":"self"},{"ecosystem":"Debian:13","package":"mediawiki","purl":"pkg:deb/debian/mediawiki?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.35.2-1"}]}],"fixed":["1:1.35.2-1"],"provider":"osv","source":"DEBIAN-CVE-2021-30154","relation":"self"},{"ecosystem":"Debian:14","package":"mediawiki","purl":"pkg:deb/debian/mediawiki?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.35.2-1"}]}],"fixed":["1:1.35.2-1"],"provider":"osv","source":"DEBIAN-CVE-2021-30154","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2021-30154"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2021-30154","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2021-30154","license":"CC-BY-SA-4.0","published_at":"2021-04-06T07:15:00Z","modified_at":"2026-05-27T10:17:06.918895Z","details":"An issue was discovered in MediaWiki before 1.31.12 and 1.32.x through 1.35.x before 1.35.2. On Special:NewFiles, all the mediastatistics-header-* messages are output in HTML unescaped, leading to XSS.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"UBUNTU-CVE-2021-30154"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2021-30154"}],"affected":[{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"mediawiki","purl":"pkg:deb/ubuntu/mediawiki?arch=source&distro=esm-apps%2Ffocal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.31.2-1ubuntu1","1:1.31.5-1","1:1.31.5-1ubuntu1","1:1.31.5-2","1:1.31.5-3","1:1.31.5-3ubuntu1","1:1.31.6-1","1:1.31.7-1","1:1.31.7-1ubuntu0.1~esm1"],"provider":"osv","source":"UBUNTU-CVE-2021-30154","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-30154"},{"type":"REPORT","url":"https://phabricator.wikimedia.org/T278014"},{"type":"REPORT","url":"https://gerrit.wikimedia.org/r/c/mediawiki/core/+/674083/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-30154"}]},{"provider":"redhat-vex","source_id":"CVE-2021-30154","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2021-30154","license":"CC-BY-4.0","published_at":"2021-03-22T00:00:00Z","modified_at":"2021-10-28T08:49:23Z","summary":"mediawiki: XSS due to unescaped messages used in HTML on Special:NewFiles","details":"In mediawiki package all the mediastatistics-header-* messages are outputted in HTML unescaped, which could leading to Cross-site Scripting (XSS).","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"CVE-2021-30154"},{"type":"Red Hat","score":"Moderate","source":"CVE-2021-30154"}],"affected":[{"ecosystem":"Red Hat:openshift:3.11","package":"mediawiki","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-30154","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"mediawiki-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-30154","relation":"self"},{"ecosystem":"Red Hat:openshift:4","package":"mediawiki","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-30154","relation":"self"},{"ecosystem":"Red Hat:openshift:4","package":"mediawiki-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-30154","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 3.11","cpe":"cpe:/a:redhat:openshift:3.11","status":"affected","packages":["mediawiki","mediawiki-doc"],"package_count":2,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2021-30154"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"affected","packages":["mediawiki","mediawiki-doc"],"package_count":2,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2021-30154"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-30154.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-30154"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1946690"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-30154"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-30154"},{"type":"WEB","url":"https://phabricator.wikimedia.org/T278014"}]}],"references":[{"type":"WEB","url":"https://phabricator.wikimedia.org/T278014"},{"type":"ADVISORY","url":"https://www.debian.org/security/2021/dsa-4889"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/26UJGHF7LJDOCQN6A3Z4PM7PYRKENJHE/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2OMSV7B2TCFBOCICN3B4SMQP5HVRJQIT/"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202107-40"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-30154"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2021-30154"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-30154"},{"type":"REPORT","url":"https://gerrit.wikimedia.org/r/c/mediawiki/core/+/674083/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-30154"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-30154.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-30154"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1946690"}],"sources":[{"provider":"osv","source_id":"DSA-4889-1","url":"https://osv.dev/vulnerability/DSA-4889-1","modified_at":"2026-11-20T01:19:04.68122Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2021-30154","url":"https://www.cve.org/CVERecord?id=CVE-2021-30154","license":"CC-BY-4.0","modified_at":"2024-08-03T22:24:59.636Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2021-30154","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-30154","relation":"self"},{"provider":"osv","source_id":"BIT-mediawiki-2021-30154","url":"https://osv.dev/vulnerability/BIT-mediawiki-2021-30154","license":"Apache-2.0","modified_at":"2025-04-03T14:40:37.652Z","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2021-30154","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2021-30154","modified_at":"2026-10-23T18:02:52.089579Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2021-30154","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2021-30154","license":"CC-BY-SA-4.0","modified_at":"2026-05-27T10:17:06.918895Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2021-30154","url":"https://access.redhat.com/security/cve/CVE-2021-30154","license":"CC-BY-4.0","modified_at":"2021-10-28T08:49:23Z","relation":"self"}]}
