Skip to main content

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


Severity Medium
Score 6.1/10


jQuery can potentially allow remote attackers to conduct Cross-site Scripting (XSS) attacks when using methods such as "jQuery()", "append()" and "after()". These methods accept an HTML string and can, by design, execute code. This vulnerability can be avoided by sanitizing inputs such as URL query parameters, cookies, or form inputs when obtained from untrusted sources. This issue wasn't fixed because it's considered to be present by design and it was documented for users to be careful when passing user input to specific functions. This security issue exists in all JQuery versions.

  • LOW
  • LOW
  • 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