CVE-2020-23064: Duplicate Advisory JQuery Cross Site Scripting Vulnerability Vulnerability
MODERATECVE-2020-23064 is a MODERATE (CVSS 6.1) jquery cross site scripting vulnerability vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Duplicate Advisory libraries in the npm ecosystem. The issue involves jquery cross site scripting vulnerability. Remediation is available by upgrading affected packages to version 3.5.0, 4.4.0.
CVE-2020-23064 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2020-23064
To remediate this vulnerability, upgrade all affected Duplicate Advisory 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>
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-23064, inspect your project dependencies using npm:
npm ls jquery
Analyze the terminal output to locate any version of Duplicate Advisory 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 Duplicate Advisory, 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-23064 Affected Duplicate Advisory Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jquery
|
npm |
≥ 1.0.3
< 3.5.0
|
3.5.0
|
|
jQuery
|
NuGet |
≥ 1.0.3
< 3.5.0
|
3.5.0
|
|
jquery-rails
|
RubyGems |
< 4.4.0
|
4.4.0
|
|
org.webjars.npm:jquery
|
Maven |
≥ 1.0.3
< 3.5.0
|
3.5.0
|
References
Frequently Asked Questions
What is CVE-2020-23064?
Which Duplicate Advisory versions are affected?
What version fixes CVE-2020-23064?
Is jquery affected?
Is jQuery affected?
What is the CVSS score of CVE-2020-23064?
What CWE is associated with CVE-2020-23064?
How can I check npm dependencies for CVE-2020-23064?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-257q-pv89-v3xv",
"modified" : "2024-05-15T20:10:38Z",
"published" : "2023-06-26T21:30:58Z",
"withdrawn" : "2024-05-15T20:10:38Z",
"aliases" : [ "CVE-2020-23064" ],
"summary" : "Duplicate Advisory: jQuery Cross Site Scripting vulnerability",
"details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of [GHSA-jpcq-cgw6-v4j6](https://github.com/advisories/GHSA-jpcq-cgw6-v4j6). This link is maintained to preserve external references.\n\n## Original Description\n\nCross Site Scripting vulnerability in jQuery v.2.2.0 until v.3.5.0 allows a remote attacker to execute arbitrary code via the `<options>` element.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "jquery"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.3"
}, {
"fixed" : "3.5.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "jQuery"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.3"
}, {
"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.0.3"
}, {
"fixed" : "3.5.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-23064"
}, {
"type" : "WEB",
"url" : "https://github.com/jquery/jquery/commit/1d61fd9407e6fbe82fe55cb0b938307aa0791f77"
}, {
"type" : "WEB",
"url" : "https://blog.jquery.com/2020/04/10/jquery-3-5-0-released"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-jpcq-cgw6-v4j6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jquery/jquery"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md#410"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md#440"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/jquery-rails/blob/v4.3.5/vendor/assets/javascripts/jquery3.js#L5979"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/jquery-rails/blob/v4.4.0/vendor/assets/javascripts/jquery3.js#L6162"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2020-23064.yml"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20230725-0003"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-JQUERY-565129"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-07T15:07:56Z",
"nvd_published_at" : "2023-06-26T19:15:09Z"
}
}