# CVE-2021-39186: Improper Input Validation in GlobalNewFiles

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.01%, higher than 63% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-09-01T20:35:12.000Z
- Modified: 2026-06-17T04:03:16.373Z
- Weaknesses: CWE-20
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- miraheze GlobalNewFiles: < cee254e1b158cdb0ddbea716b1d3edc31fa4fb5d; before 2021-09-01

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://phabricator.miraheze.org/T7935> (exploit, third-party-advisory)
- <https://github.com/miraheze/GlobalNewFiles/security/advisories/GHSA-57p5-hqjq-h7vg> (third-party-advisory)
- <https://github.com/miraheze/GlobalNewFiles/commit/cee254e1b158cdb0ddbea716b1d3edc31fa4fb5d> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-39186](https://www.cve.org/CVERecord?id=CVE-2021-39186), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-39186](https://nvd.nist.gov/vuln/detail/CVE-2021-39186), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-39186 · Whole record: https://cve.day/CVE-2021-39186.json · Rebuilt by cve.day 2026-11-25T22:58:03.619Z
