Vulnerabilities in pkg:npm/jquery
PACKAGECVE-2020-11022 is a MODERATE (CVSS 6.9) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Jquery libraries in the npm ecosystem. The issue involves potential xss vulnerability in jquery. Remediation is available by upgrading affected packages to version 3.5.0, 4.4.0, 1.19.0, 4.0.1.
pkg:npm/jquery
Vulnerability advisories affecting package pkg:npm/jquery. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-gxr4-xjj5-5px2 | CVE-2020-11022 | MODERATE | Potential XSS vulnerability in jQuery |
| GHSA-579v-mp3v-rrw5 | CVE-2011-4969 | MODERATE | jQuery vulnerable to Cross-Site Scripting (XSS) |
| GHSA-jpcq-cgw6-v4j6 | CVE-2020-11023 | MODERATE | Potential XSS vulnerability in jQuery |
| GHSA-mhpp-875w-9cpv | CVE-2016-10707 | HIGH | Denial of Service in jquery |
| GHSA-6c3j-c64m-qhgq | CVE-2019-11358 | MODERATE | XSS in jQuery as used in Drupal, Backdrop CMS, and other products |
| GHSA-q4m3-2j7h-f7xw | CVE-2020-7656 | MODERATE | Cross-Site Scripting in jquery |
| GHSA-257q-pv89-v3xv | CVE-2020-23064 | MODERATE | Duplicate Advisory: jQuery Cross Site Scripting vulnerability |
| GHSA-2pqj-h3vj-pqgw | CVE-2012-6708 | MODERATE | Cross-Site Scripting in jquery |
| GHSA-wv67-q8rr-grjp | CVE-2019-5428 | MODERATE | Duplicate Advisory: Prototype Pollution in jquery |
| GHSA-rmxg-73gg-4p98 | CVE-2015-9251 | MODERATE | Cross-Site Scripting (XSS) in jquery |
CVE-2020-11022 at a Glance
Security Impact
CVSS: 6.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N).
How to Fix CVE-2020-11022
To remediate this vulnerability, upgrade all affected Jquery dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install jquery@3.5.0
Upgrade jquery to 3.5.0
Upgrade jquery-rails to 4.4.0
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>jquery</artifactId>
<version>3.5.0</version>
</dependency>
Upgrade maximebf/debugbar to 1.19.0
Upgrade athlon1600/youtube-downloader to 4.0.1
Upgrade components/jquery to 3.5.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls jquery
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2020-11022, inspect your project dependencies using npm:
npm ls jquery
Analyze the terminal output to locate any version of Jquery in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.5.0), your application is affected.
Note: The npm ls jquery command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Jquery, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-11022 Affected Jquery Versions
7 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jquery
|
npm |
≥ 1.12.0
< 3.5.0
|
3.5.0
|
|
jquery
|
NuGet |
≥ 1.12.0
< 3.5.0
|
3.5.0
|
|
jquery-rails
|
RubyGems |
< 4.4.0
|
4.4.0
|
|
org.webjars.npm:jquery
|
Maven |
≥ 1.12.0
< 3.5.0
|
3.5.0
|
|
maximebf/debugbar
|
Packagist |
< 1.19.0
|
1.19.0
|
|
athlon1600/youtube-downloader
|
Packagist |
< 4.0.1
|
4.0.1
|
|
components/jquery
|
Packagist |
≥ 1.12.0
< 3.5.0
|
3.5.0
|
References
Frequently Asked Questions
What is CVE-2020-11022?
Which Jquery versions are affected?
What version fixes CVE-2020-11022?
Is jquery affected?
Is jquery-rails affected?
What is the CVSS score of CVE-2020-11022?
What CWE is associated with CVE-2020-11022?
How can I check npm dependencies for CVE-2020-11022?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gxr4-xjj5-5px2",
"modified" : "2026-07-09T19:26:15Z",
"published" : "2020-04-29T22:18:55Z",
"aliases" : [ "CVE-2020-11022" ],
"summary" : "Potential XSS vulnerability in jQuery",
"details" : "### Impact\nPassing 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.\n\n### Patches\nThis problem is patched in jQuery 3.5.0.\n\n### Workarounds\nTo workaround the issue without upgrading, adding the following to your code:\n\n```js\njQuery.htmlPrefilter = function( html ) {\n\treturn html;\n};\n```\n\nYou need to use at least jQuery 1.12/2.2 or newer to be able to apply this workaround.\n\n### References\nhttps://blog.jquery.com/2020/04/10/jquery-3-5-0-released/\nhttps://jquery.com/upgrade-guide/3.5/\n\n### For more information\nIf you have any questions or comments about this advisory, search for a relevant issue in [the jQuery repo](https://github.com/jquery/jquery/issues). If you don't find an answer, open a new issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "jquery"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.12.0"
}, {
"fixed" : "3.5.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "jquery"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.12.0"
}, {
"fixed" : "3.5.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "jquery-rails"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.4.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.webjars.npm:jquery"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.12.0"
}, {
"fixed" : "3.5.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "maximebf/debugbar"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.19.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "athlon1600/youtube-downloader"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.0.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.0.0"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "components/jquery"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.12.0"
}, {
"fixed" : "3.5.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/jquery/jquery/security/advisories/GHSA-gxr4-xjj5-5px2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-11022"
}, {
"type" : "WEB",
"url" : "https://github.com/maximebf/php-debugbar/issues/447"
}, {
"type" : "WEB",
"url" : "https://github.com/jquery/jquery/commit/1d61fd9407e6fbe82fe55cb0b938307aa0791f77"
}, {
"type" : "WEB",
"url" : "https://github.com/maximebf/php-debugbar/commit/847216e60544258c881f2733d699bbcfeefac0fc"
}, {
"type" : "WEB",
"url" : "https://blog.jquery.com/2020/04/10/jquery-3-5-0-released"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VOE7P7APPRQKD4FGNHBKJPDY6FFCOH3W"
}, {
"type" : "WEB",
"url" : "https://lists.opensuse.org/opensuse-security-announce/2020-07/msg00067.html"
}, {
"type" : "WEB",
"url" : "https://lists.opensuse.org/opensuse-security-announce/2020-07/msg00085.html"
}, {
"type" : "WEB",
"url" : "https://lists.opensuse.org/opensuse-security-announce/2020-11/msg00039.html"
}, {
"type" : "WEB",
"url" : "https://packetstormsecurity.com/files/162159/jQuery-1.2-Cross-Site-Scripting.html"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202007-03"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2020/dsa-4693"
}, {
"type" : "WEB",
"url" : "https://www.drupal.org/sa-core-2020-002"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com//security-alerts/cpujul2021.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuApr2021.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuapr2022.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujan2021.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujan2022.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujul2020.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujul2022.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuoct2020.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuoct2021.html"
}, {
"type" : "WEB",
"url" : "https://www.tenable.com/security/tns-2020-10"
}, {
"type" : "WEB",
"url" : "https://www.tenable.com/security/tns-2020-11"
}, {
"type" : "WEB",
"url" : "https://www.tenable.com/security/tns-2021-02"
}, {
"type" : "WEB",
"url" : "https://www.tenable.com/security/tns-2021-10"
}, {
"type" : "WEB",
"url" : "https://github.com/Athlon1600/youtube-downloader/releases/tag/v4.0.1"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jquery/jquery"
}, {
"type" : "WEB",
"url" : "https://github.com/jquery/jquery/releases/tag/3.5.0"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2020-11022.yml"
}, {
"type" : "WEB",
"url" : "https://jquery.com/upgrade-guide/3.5"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r0483ba0072783c2e1bfea613984bfb3c86e73ba8879d780dc1cc7d36@%3Cissues.flink.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r49ce4243b4738dd763caeb27fa8ad6afb426ae3e8c011ff00b8b1f48@%3Cissues.flink.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r54565a8f025c7c4f305355fdfd75b68eca442eebdb5f31c2e7d977ae@%3Cissues.flink.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r564585d97bc069137e64f521e68ba490c7c9c5b342df5d73c49a0760@%3Cissues.flink.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r706cfbc098420f7113968cc377247ec3d1439bce42e679c11c609e2d@%3Cissues.flink.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r8f70b0f65d6bedf316ecd899371fd89e65333bc988f6326d2956735c@%3Cissues.flink.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rbb448222ba62c430e21e13f940be4cb5cfc373cd3bce56b48c0ffa67@%3Cdev.flink.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rdf44341677cf7eec7e9aa96dcf3f37ed709544863d619cca8c36f133@%3Ccommits.airflow.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/re4ae96fa5c1a2fe71ccbb7b7ac1538bd0cb677be270a2bf6e2f8d108@%3Cissues.flink.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rede9cfaa756e050a3d83045008f84a62802fc68c17f2b4eabeaae5e4@%3Cissues.flink.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/ree3bd8ddb23df5fa4e372d11c226830ea3650056b1059f3965b3fce2@%3Cissues.flink.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2021/03/msg00033.html"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2023/08/msg00040.html"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AVKYXLWCLZBV2N7M46KYK4LVA5OXWPBY"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QPN2L2XVQGUA2V5HNQJWHK3APSK3VN7K"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SAPQVX3XDNPGFT26QAQ6AJIXZZBZ4CD4"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SFP4UK4EGP4AFH2MWYJ5A5Z4I7XVFQ6B"
}, {
"type" : "WEB",
"url" : "http://security.netapp.com/advisory/ntap-20200511-0006"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-04-29T22:18:37Z",
"nvd_published_at" : "2020-04-29T22:15:00Z"
}
}