CVE-2019-5428: Duplicate Advisory Prototype Pollution Vulnerability
MODERATECVE-2019-5428 is a MODERATE prototype pollution vulnerability (General Security Weakness) affecting Duplicate Advisory libraries in the npm ecosystem. The issue involves prototype pollution in jquery. Remediation is available by upgrading affected packages to version 3.4.0.
CVE-2019-5428 at a Glance
How to Fix CVE-2019-5428
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.4.0
Upgrade jquery to 3.4.0
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>jquery</artifactId>
<version>3.4.0</version>
</dependency>
Upgrade jquery-rails to 3.4.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-2019-5428, 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.4.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 General Security Weakness. 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-2019-5428 Affected Duplicate Advisory Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jquery
|
npm |
< 3.4.0
|
3.4.0
|
|
jquery
|
NuGet |
< 3.4.0
|
3.4.0
|
|
org.webjars.npm:jquery
|
Maven |
< 3.4.0
|
3.4.0
|
|
jquery-rails
|
RubyGems |
< 3.4.0
|
3.4.0
|
References
Frequently Asked Questions
What is CVE-2019-5428?
Which Duplicate Advisory versions are affected?
What version fixes CVE-2019-5428?
Is jquery affected?
Is jquery-rails affected?
What CWE is associated with CVE-2019-5428?
How can I check npm dependencies for CVE-2019-5428?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wv67-q8rr-grjp",
"modified" : "2022-10-06T17:19:37Z",
"published" : "2019-04-23T15:59:10Z",
"withdrawn" : "2019-04-26T14:50:56Z",
"aliases" : [ "CVE-2019-5428" ],
"summary" : "Duplicate Advisory: Prototype Pollution in jquery",
"details" : "## Duplicate Advisory\nThis advisory is a duplicate of [GHSA-6c3j-c64m-qhgq](https://github.com/advisories/GHSA-6c3j-c64m-qhgq). This link is maintained to preserve external references.\n\n## Original Description\nVersions of `jquery` prior to 3.4.0 are vulnerable to Prototype Pollution. The extend() method allows an attacker to modify the prototype for `Object` causing changes in properties that will exist on all objects.\n\n## Recommendation\nUpgrade to version 3.4.0 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "jquery"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.4.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "jquery"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.4.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.webjars.npm:jquery"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.4.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "jquery-rails"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.4.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-5428"
}, {
"type" : "WEB",
"url" : "https://github.com/jquery/jquery/pull/4333"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/454365"
}, {
"type" : "WEB",
"url" : "https://blog.jquery.com/2019/04/10/jquery-3-4-0-released"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/796"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-04-23T15:57:18Z",
"nvd_published_at" : null
}
}