CVE-2021-39186: MediaWiki - Stored XSS
- Cve: CVE-2021-39186
- Name: MediaWiki - Stored XSS
- Description: GlobalNewFiles is a MediaWiki extension maintained by Miraheze. Prior to commit number cee254e1b158cdb0ddbea716b1d3edc31fa4fb5d, the username column of the GlobalNewFiles special page is vulnerable to a stored XSS. Commit number cee254e1b158cdb0ddbea716b1d3edc31fa4fb5d contains a patch. As a workaround, one may disallow <,> (or other characters required to insert html/js) from being used in account names so an XSS is not possible.
- Impact: Attackers can execute arbitrary scripts in the context of other users, leading to session hijacking, defacement, or data theft.
- Remediation: Apply the patch from commit cee254e1b158cdb0ddbea716b1d3edc31fa4fb5d or disallow <, > characters in account names.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to control or manipulate username input
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01006
- Epss percentile: 0.63685
- Assignee: [email protected]
- Published at: 2021-09-01T21:15:07Z
- Age in days: 1910
- Modified at: 2026-06-17T04:03:16Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-39186
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-20 | Improper Input Validation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://phabricator.miraheze.org/T7935 | nvd | 2021-09-01 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/miraheze/GlobalNewFiles/commit/cee254e1b158cdb0ddbea716b1d3edc31fa4fb5d | Patch, Third Party Advisory |
| https://phabricator.miraheze.org/T7935 | Exploit, Third Party Advisory |
| https://github.com/miraheze/GlobalNewFiles/security/advisories/GHSA-57p5-hqjq-h7vg | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| miraheze:globalnewfiles | < 2021-09-01 | no | nvd | /v1/products/miraheze/globalnewfiles |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| miraheze/GlobalNewFiles | commit, fix, security_advisory | yes | /v1/repositories/miraheze/GlobalNewFiles |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2021-09-01
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts