jQuery has a potential XSS vulnerability
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 |
< 4.4.0
|
| org.webjars.npm:jquery Maven |
|
|
| maximebf/debugbar Packagist |
|
|
| athlon1600/youtube-downloader Packagist |
|
|
| components/jquery Packagist |
|
|
In jQuery starting with 1.12.0 and before 3.5.0, passing HTML from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code. This problem is patched in jQuery 3.5.0.
From the CVE record · GitHub_M
jQuery 1.12.0 through versions before 3.5.0 may execute untrusted code when HTML from an untrusted source is passed to a DOM manipulation method such as .html() or .append(). This can happen even if the HTML was sanitized first; the input does not specify whether authentication or user interaction is required.
Check applications using npm jquery, NuGet jquery, Maven org.webjars.npm:jquery, or Packagist components/jquery at >=1.12.0 <3.5.0; RubyGems jquery-rails at <4.4.0; Packagist maximebf/debugbar at <1.19.0; or Packagist athlon1600/youtube-downloader at <4.0.1.