Loading advisory.
Loading advisory.
Cross-Site Scripting in jquery
Affected versions of jquery are vulnerable to cross-site scripting. This occurs because the main jquery function uses a regular expression to differentiate between HTML and selectors, but does not properly anchor the regular expression.
Published 2018-01-18 23:00 UTC · Modified 2024-08-06 21:36 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.9.0 | 1.9.0 | npm install jquery@1.9.0 |
| org.webjars.npm:jquery | Maven | < 1.9.0 versions 1.7.2, 1.7.3, 1.8.2, 1.8.3 | 1.9.0 | No single command for Maven. Update to 1.9.0 in your build file. |
| jQuery | NuGet | < 1.9.0 versions 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.7.0, 1.7.1, 1.7.1.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.8.3 | 1.9.0 | dotnet add package jQuery --version 1.9.0 |
| jquery-rails | RubyGems | < 2.2.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 20 more | 2.2.0 | gem install jquery-rails -v 2.2.0 |
Affected versions of jquery are vulnerable to cross-site scripting. This occurs because the main jquery function uses a regular expression to differentiate between HTML and selectors, but does not properly anchor the regular expression. The result is that jquery may interpret HTML as selectors when given certain inputs, allowing for client side code execution.
$("#log").html(
$("element[attribute='<img src=\"x\" onerror=\"alert(1)\" />']").html()
);Update to version 1.9.0 or later.
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.086 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.086 | first score | v2026.06.15 |