CVE-2021-39186: Improper Input Validation in GlobalNewFiles

Published Sep 1, 2021
·
Updated

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.

Affected Software

1 affected component
Miraheze Globalnewfiles Mediawiki<2021-09-01

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade GlobalNewFiles (MediaWiki extension) to a version that resolves this vulnerability.

    Patch cee254e1b158cdb0ddbea716b1d3edc31fa4fb5d
  2. Configuration

    As a workaround to prevent stored XSS, configure the system so that account names cannot contain '<' or '>' (or other characters required to insert html/js), preventing the vulnerable username column from being populated with executable markup.

    GlobalNewFiles (MediaWiki extension) Account name character validation = Disallow '<' and '>' (and other characters required to insert html/js) from being used in account names

Event History

Sep 1, 2021
CVE Published
via MITRE·08:35 PM
Data Sourced
via MITRE·08:35 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-39186?

CVE-2021-39186 is classified as a medium severity vulnerability due to its potential for stored XSS exploitation.

2

How do I fix CVE-2021-39186?

To fix CVE-2021-39186, update the GlobalNewFiles extension to a version later than 2021-09-01.

3

What does CVE-2021-39186 affect?

CVE-2021-39186 affects the GlobalNewFiles extension for MediaWiki prior to the specified commit.

4

What is stored XSS in relation to CVE-2021-39186?

Stored XSS in CVE-2021-39186 refers to an attacker being able to inject malicious scripts that are stored in the database and executed on others' browsers.

5

Who maintains the GlobalNewFiles extension related to CVE-2021-39186?

GlobalNewFiles is maintained by Miraheze.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203