LiveActive security incident?Get immediate response
CVE Record

CVE-2021-39186: Improper Input Validation in GlobalNewFiles

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.

MediumCVSS 4.3Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2021-39186 is a stored cross-site scripting issue in Miraheze's GlobalNewFiles MediaWiki extension. A crafted account name could be displayed unsafely on the GlobalNewFiles special page, causing script execution when another user views it. Impact is limited in the CVSS record, but public wiki environments should treat it as a prompt hygiene and user-trust risk.

Executive priority

Treat as a moderate-priority web application fix. It is not described as actively exploited and has limited CVSS impact, but stored XSS can damage user trust and create session-level workflow risk for staff who view affected pages.

Technical view

Before commit cee254e1b158cdb0ddbea716b1d3edc31fa4fb5d, GlobalNewFiles did not properly validate or encode usernames in the username column of its special page. The CVE classifies this as CWE-20 with CVSS 3.1 score 4.3, network reachable, low complexity, no privileges required, user interaction required, and low integrity impact.

Likely exposure

Exposure is limited to MediaWiki deployments using the Miraheze GlobalNewFiles extension before the named patch commit. Risk is higher where account creation is open and users or staff view the GlobalNewFiles special page. The sources do not provide conventional version numbers or package names.

Exploitation context

The source bundle does not show CISA KEV listing or cite active exploitation. Practical abuse requires a victim to view the affected special page after a maliciously formed username is present. Sources describe the weakness and patch, but do not provide exploitation evidence.

Researcher notes

The key constraint is affected-version ambiguity: sources identify the vulnerable range by commit rather than release numbers. Validation should focus on source state, deployed extension revision, account-name controls, and safe output handling on the GlobalNewFiles special page. Avoid assuming impact beyond low integrity impact stated in CVSS.

Mitigation direction

  • Update GlobalNewFiles to include commit cee254e1b158cdb0ddbea716b1d3edc31fa4fb5d or later.
  • Check vendor advisory and repository guidance for supported upgrade handling.
  • As a temporary workaround, restrict account names from using HTML or script-enabling characters.
  • Review username policy for public-registration wikis using this extension.
  • Prioritize remediation where administrators routinely view GlobalNewFiles.

Validation and detection

  • Inventory MediaWiki instances for the GlobalNewFiles extension.
  • Compare deployed extension code against patch commit cee254e1b158cdb0ddbea716b1d3edc31fa4fb5d.
  • Confirm account-name validation blocks unsafe HTML-related characters if relying on the workaround.
  • Verify the GlobalNewFiles special page renders usernames as inert text after patching.
  • Document whether affected public routes and operational behavior changed.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-20: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-39186 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
4.3 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
4.3CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N2.81.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

4.3Medium
CVSS 3.1 vector shape for CVE-2021-39186Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
mirahezeGlobalNewFiles< cee254e1b158cdb0ddbea716b1d3edc31fa4fb5dListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.