CVE-2019-5428: Duplicate Advisory Prototype Pollution Vulnerability

MODERATE
Advisory Identifier: GHSA-wv67-q8rr-grjp
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2019-5428
GHSA Identifier GHSA-wv67-q8rr-grjp
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Duplicate Advisory
Package Ecosystem npm
Published Date
Last Updated

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.

jquery fixed: 3.4.0
npm install jquery@3.4.0
jquery fixed: 3.4.0
Upgrade jquery to 3.4.0
org.webjars.npm:jquery fixed: 3.4.0
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>jquery</artifactId>
    <version>3.4.0</version>
</dependency>
jquery-rails fixed: 3.4.0
Upgrade jquery-rails to 3.4.0
Verify Direct and Transitive Dependencies

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

## Duplicate Advisory This 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. ## Original Description Versions 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. ## Recommendation Upgrade to version 3.4.0 or later.

CVE-2019-5428 Affected Duplicate Advisory Versions

4 component(s)
Fixed Versions:
3.4.0
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?
CVE-2019-5428 is a security vulnerability in Duplicate Advisory involving Prototype Pollution in jquery under General Security Weakness.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 3.4.0 across affected packages: jquery, org.webjars.npm:jquery, jquery-rails.
What version fixes CVE-2019-5428?
Upgrading to 3.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jquery affected?
Yes, jquery is affected in releases prior to 3.4.0. Upgrade your dependency to 3.4.0 or later.
Is jquery-rails affected?
Yes, jquery-rails is affected in releases prior to 3.4.0. Upgrade your dependency to 3.4.0 or later.
What CWE is associated with CVE-2019-5428?
CVE-2019-5428 is classified under General Security Weakness.
How can I check npm dependencies for CVE-2019-5428?
Run the dependency tree command: 'npm ls jquery'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}