Loading advisory.
Loading advisory.
Potential XSS vulnerability in jQuery
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.
Published 2020-04-29 00:00 UTC · Modified 2026-11-02 17:54 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| jquery | npm | >= 1.12.0, < 3.5.0 | 3.5.0 | npm install jquery@3.5.0 |
| jQuery | NuGet | >= 1.12.0, < 3.5.0 versions 1.12.0, 1.12.1, 1.12.2, 1.12.3, 1.12.4, 2.0.0, 2.0.1, 2.0.1.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4 and 8 more | 3.5.0 | dotnet add package jQuery --version 3.5.0 |
| jquery-rails | RubyGems | < 4.4.0 versions 0.1.1, 0.1.2, 0.1.3, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 1.0, 1.0.1, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15, 1.0.16 and 54 more | 4.4.0 | gem install jquery-rails -v 4.4.0 |
| org.webjars.npm:jquery | Maven | >= 1.12.0, < 3.5.0 versions 1.12.1, 1.12.2, 1.12.3, 1.12.4, 2.1.0, 2.1.1, 2.1.1-rc1, 2.1.1-rc2, 2.1.3, 2.1.4, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 3.0.0, 3.0.0-alpha1, 3.0.0-beta1, 3.0.0-rc1, 3.1.0 and 7 more | 3.5.0 | No single command for Maven. Update to 3.5.0 in your build file. |
| maximebf/debugbar | Packagist | < 1.19.0 versions 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1, 1.10.0, 1.10.1, 1.13.1, 1.2, 1.3, 1.4, 1.5, 1.5.1, 1.6, 1.6.1, 1.7, 1.7.1, 1.8, 1.9 and 40 more | 1.19.0 | composer require 'maximebf/debugbar:>=1.19.0' |
| athlon1600/youtube-downloader | Packagist | < 4.0.1 versions v1.0.0, v1.0.1, v2.0.0, v2.0.1, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9, v2.1.0, v2.1.1, v2.1.2, v3.0.0, v3.0.1, v3.0.2, v3.1.0, v3.1.1 and 2 more | 4.0.1 | composer require 'athlon1600/youtube-downloader:>=4.0.1' |
| components/jquery | Packagist | >= 1.12.0, < 3.5.0 versions 1.12.0, 1.12.1, 1.12.4, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.3, 2.1.4, 2.2.0, 2.2.1, 2.2.4, 3.0.0, 3.1.0, 3.1.1, 3.2.0, 3.2.1, 3.3.1 and 1 more | 3.5.0 | composer require 'components/jquery:>=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.
To workaround the issue without upgrading, adding the following to your code:
jQuery.htmlPrefilter = function( html ) {
return html;
};You need to use at least jQuery 1.12/2.2 or newer to be able to apply this workaround.
https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/ https://jquery.com/upgrade-guide/3.5/
If you have any questions or comments about this advisory, search for a relevant issue in the jQuery repo. If you don't find an answer, open a new issue.
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
One EPSS score on record: 0.992 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.992 | first score | v2026.06.15 |