Cross-Site Scripting in jquery
jquery
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| jquery npm |
|
|
| jQuery NuGet |
|
|
| jquery-rails RubyGems |
jquery
| Product | Affected | Fixed in |
|---|---|---|
| jquery npm |
|
|
| jQuery NuGet |
|
|
| jquery-rails RubyGems |
< 2.2.0
|
| org.webjars.npm:jquery Maven |
|
|
jquery prior to 1.9.0 allows Cross-site Scripting attacks via the load method. The load method fails to recognize and remove "<script>" HTML tags that contain a whitespace character, i.e: "</script >", which results in the enclosed script logic to be executed.
From the CVE record · snyk
jquery versions before 1.9.0 are vulnerable to cross-site scripting in the load method. The method fails to remove script tags containing whitespace, such as `</script >`, allowing the enclosed script to execute when that HTML is loaded. The input does not specify authentication or user-interaction requirements.
Check applications using npm jquery, NuGet jQuery, or Maven org.webjars.npm:jquery versions >=1.2.1 and <1.9.0, or RubyGems jquery-rails versions <2.2.0.