SecurityContext

CVE-2021-31550: MediaWiki - Stored XSS

  • Cve: CVE-2021-31550
  • Name: MediaWiki - Stored XSS
  • Description: An issue was discovered in the CommentBox extension for MediaWiki through 1.35.2. Via crafted configuration variables, a malicious actor could introduce XSS payloads into various layers.
  • Impact: Attackers can execute malicious scripts in users' browsers, leading to session hijacking or defacement.
  • Remediation: Update to the latest version of MediaWiki, preferably beyond 1.35.2, or apply security patches addressing this issue.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs to control configuration variables
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00467
  • Epss percentile: 0.4093
  • Assignee: [email protected]
  • Published at: 2021-04-22T03:15:08Z
  • Age in days: 2042
  • Modified at: 2026-06-17T03:51:59Z
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-31550
  • 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

UrlSourceTags
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Commentbox/+/651934/nvdIssue Tracking, Vendor Advisory
https://phabricator.wikimedia.org/T270767nvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
mediawiki:mediawiki<= 1.35.2nonvd/v1/products/mediawiki/mediawiki

Index

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

Exploitation

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