SecurityContext

CVE-2021-45474: MediaWiki - Stored XSS

  • Cve: CVE-2021-45474
  • Name: MediaWiki - Stored XSS
  • Description: In MediaWiki through 1.37, the Special:ImportFile URI (aka FileImporter) allows XSS, as demonstrated by the clientUrl parameter.
  • Impact: Attackers can execute arbitrary scripts in the context of the affected site, leading to session hijacking or defacement.
  • Remediation: Update to the latest version of MediaWiki or apply security patches addressing the XSS vulnerability.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs to craft and lure victim to malicious URL
  • 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.01002
  • Epss percentile: 0.63752
  • Assignee: [email protected]
  • Published at: 2021-12-24T02:15:07Z
  • Age in days: 1796
  • Modified at: 2026-06-17T04:13:26Z
  • References total: 3
  • Products total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-45474
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

Same in every row:

  • Source: nvd
UrlTags
https://gerrit.wikimedia.org/r/q/Id1c8910aeac5b452fbabeddab70360765518223eThird Party Advisory
https://phabricator.wikimedia.org/T296605Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z7JNQA53K675TQBBJPZRAG5ZT6XES3IS/

Products

ProductAffectedPlatform boundSourcesUrl
mediawiki:mediawiki<= 1.37nonvd/v1/products/mediawiki/mediawiki
fedoraproject:fedora= 35nonvd/v1/products/fedoraproject/fedora

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Exposed hosts: 170630
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports