CVE-2021-42048: MediaWiki - Stored XSS
- Cve: CVE-2021-42048
- Name: MediaWiki - Stored XSS
- Description: An issue was discovered in the Growth extension in MediaWiki through 1.36.2. Any admin can add arbitrary JavaScript code to the Newcomer home page footer, which can be executed by viewers with zero edits.
- Impact: Attackers can execute arbitrary scripts in viewers' browsers, leading to session hijacking, defacement, or further attacks.
- Remediation: Update to the latest version of MediaWiki where this issue is fixed.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: admin_privileges
- Requirements: Attacker needs admin privileges
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00658
- Epss percentile: 0.52245
- Assignee: [email protected]
- Published at: 2022-09-29T03:15:14Z
- Age in days: 1517
- Modified at: 2026-06-17T04:09:13Z
- Patch available: yes
- References total: 2
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-42048
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
| Url | Source | Tags |
|---|---|---|
| https://gerrit.wikimedia.org/r/q/Iaa90a8976834d70caad592e9d1b18510318db537 | nvd | Patch, Vendor Advisory |
| https://phabricator.wikimedia.org/T289064 | nvd | Patch, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| mediawiki:mediawiki | <= 1.36.2 | no | nvd | /v1/products/mediawiki/mediawiki |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 170630
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports