Loading advisory.
Loading advisory.
Potential XSS vulnerability in jQuery
Passing HTML containing <option> elements from untrusted sources - even after sanitizing them - 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-09-10 03:48 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| jquery | npm | >= 1.0.3, < 3.5.0 | 3.5.0 | npm install jquery@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 |
| jQuery | NuGet | >= 1.0.3, < 3.5.0 versions 1.10.0, 1.10.0.1, 1.10.1, 1.10.2, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.12.2, 1.12.3, 1.12.4, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.5.0, 1.5.1, 1.5.2 and 38 more | 3.5.0 | dotnet add package jQuery --version 3.5.0 |
| org.webjars.npm:jquery | Maven | >= 1.0.3, < 3.5.0 versions 1.11.0, 1.11.1, 1.11.3, 1.12.1, 1.12.2, 1.12.3, 1.12.4, 1.7.2, 1.7.3, 1.8.2, 1.8.3, 1.9.1, 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 and 15 more | 3.5.0 | No single command for Maven. Update to 3.5.0 in your build file. |
| components/jquery | Packagist | >= 1.0.3, < 3.5.0 versions 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.12.4, 1.8.3, 1.9.0, 1.9.1, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.3 and 11 more | 3.5.0 | composer require 'components/jquery:>=3.5.0' |
Passing HTML containing <option> elements from untrusted sources - even after sanitizing them - 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 this issue without upgrading, use DOMPurify with its SAFE_FOR_JQUERY option to sanitize the HTML string before passing it to a jQuery method.
https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/
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.849 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.849 | first score | v2026.06.15 |