Skip to main content

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CVE-2020-25814

Severity Medium
Score 6.1/10

Summary

In MediaWiki prior to 1.31.9 and 1.32.x, 1.33.x, 1.34.x prior to 1.34.3,and 1.35.x prior to 1.35.0 XSS related to jQuery can occur. The attacker creates a message with "[javascript:payload xss]" and turns it into a jQuery object with "mw.message().parse()". The expected result is that the jQuery object does not contain an "<a> tag (or it does not have a href attribute, or it's empty, etc.)". The actual result is that the object contains an "<a href ="javascript..." that executes when clicked.

  • LOW
  • NETWORK
  • LOW
  • CHANGED
  • REQUIRED
  • NONE
  • LOW
  • NONE

CWE-79 - Cross Site Scripting

Cross-Site Scripting, commonly referred to as XSS, is the most dominant class of vulnerabilities. It allows an attacker to inject malicious code into a pregnable web application and victimize its users. The exploitation of such a weakness can cause severe issues such as account takeover, and sensitive data exfiltration. Because of the prevalence of XSS vulnerabilities and their high rate of exploitation, it has remained in the OWASP top 10 vulnerabilities for years.

Advisory Timeline

  • Published