CVE-2021-39186 Details
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.
A stored cross-site scripting vulnerability has been identified in the GlobalNewFiles MediaWiki extension, prior to commit cee254e1b158cdb0ddbea716b1d3edc31fa4fb5d. The issue arises in the username column of the GlobalNewFiles special page, where unescaped HTML or JavaScript can be injected and stored. This vulnerability can be exploited by using account names that include certain characters, such as angle brackets, which are necessary for inserting HTML or JavaScript. The vulnerability has been patched in the mentioned commit, but users can also manually disallow the use of such characters in account names to prevent the XSS injection.
Users can update to the patched version available in commit cee254e1b158cdb0ddbea716b1d3edc31fa4fb5d. Alternatively, account names can be sanitized to remove characters that could be used for HTML or JavaScript injection.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/miraheze/GlobalNewFiles/commit/cee254e1b158cdb0ddbea716b1d3edc31fa4fb5d | CVE | PatchThird Party Advisory |
| https://github.com/miraheze/GlobalNewFiles/security/advisories/GHSA-57p5-hqjq-h7vg | CVE | Third Party Advisory |
| https://phabricator.miraheze.org/T7935 | CVE | ExploitThird Party Advisory |
| https://github.com/miraheze/GlobalNewFiles/commit/cee254e1b158cdb0ddbea716b1d3edc31fa4fb5d | [email protected] | PatchThird Party Advisory |
| https://github.com/miraheze/GlobalNewFiles/security/advisories/GHSA-57p5-hqjq-h7vg | [email protected] | Third Party Advisory |
| https://phabricator.miraheze.org/T7935 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| miraheze globalnewfiles | < 2021-09-01 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Sep 10, 2021 | Initial Analysis | [email protected] |
| Sep 6, 2021 | CVE Modified | [email protected] |