CVE-2019-10745: Assign deep Assign-deep Vulnerable To Prototype Pollution Vulnerability

HIGH
Advisory Identifier: GHSA-66rh-8fw6-59q6
CVSS 7.5
CWE-1321 CWE-20 CWE-915
Published
Advisory Summary

CVE-2019-10745 is a HIGH (CVSS 7.5) assign-deep vulnerable to prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Assign deep libraries in the npm ecosystem. The issue involves assign-deep vulnerable to prototype pollution. Remediation is available by upgrading affected packages to version 0.4.8, 1.0.1.

CVE-2019-10745 at a Glance

CVE Identifier CVE-2019-10745
GHSA Identifier GHSA-66rh-8fw6-59q6
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Assign deep
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2019-10745

To remediate this vulnerability, upgrade all affected Assign deep dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

assign-deep fixed: 0.4.8
npm install assign-deep@0.4.8
assign-deep fixed: 1.0.1
npm install assign-deep@1.0.1
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 assign-deep

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2019-10745, inspect your project dependencies using npm:

npm ls assign-deep

Analyze the terminal output to locate any version of Assign deep in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.8), your application is affected.

Note: The npm ls assign-deep 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-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Assign deep, 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

Versions of `assign-deep` prior to 1.0.1 and 0.4.8 are vulnerable to Prototype Pollution. The `assign` function fails to validate which Object properties it updates. This allows attackers to modify the prototype of Object, causing the addition or modification of an existing property on all objects. ## Recommendation Upgrade to versions 1.0.1, 0.4.8, or later.

CVE-2019-10745 Affected Assign deep Versions

2 component(s)
Fixed Versions:
0.4.81.0.1
Product / Package Ecosystem Affected Versions Fixed Version
assign-deep
npm
< 0.4.8
0.4.8
assign-deep
npm
≥ 1.0.0
< 1.0.1
All 1 versions
1.0.0
1.0.1

References

Frequently Asked Questions

What is CVE-2019-10745?
CVE-2019-10745 is a security vulnerability in Assign deep involving assign-deep Vulnerable to Prototype Pollution under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Assign deep versions are affected?
Affected versions include releases prior to 0.4.8, 1.0.1 across affected packages: assign-deep.
What version fixes CVE-2019-10745?
Upgrading to 0.4.8, 1.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is assign-deep affected?
Yes, assign-deep is affected in releases prior to 0.4.8, 1.0.1. Upgrade your dependency to 0.4.8, 1.0.1 or later.
What is the CVSS score of CVE-2019-10745?
CVE-2019-10745 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2019-10745?
CVE-2019-10745 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.).
How can I check npm dependencies for CVE-2019-10745?
Run the dependency tree command: 'npm ls assign-deep'. 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-66rh-8fw6-59q6",
  "modified" : "2022-08-03T16:21:27Z",
  "published" : "2019-08-21T16:15:13Z",
  "aliases" : [ "CVE-2019-10745" ],
  "summary" : "assign-deep Vulnerable to Prototype Pollution",
  "details" : "Versions of `assign-deep` prior to 1.0.1 and 0.4.8 are vulnerable to Prototype Pollution. The `assign` function fails to validate which Object properties it updates. This allows attackers to modify the prototype of Object, causing the addition or modification of an existing property on all objects.\n\n## Recommendation\n\nUpgrade to versions 1.0.1, 0.4.8, or later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "assign-deep"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.4.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "assign-deep"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.0.1"
      } ]
    } ],
    "versions" : [ "1.0.0" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10745"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jonschlinkert/assign-deep/commit/8e3cc4a34246733672c71e96532105384937e56c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jonschlinkert/assign-deep/commit/90bf1c551d05940898168d04066bbf15060f50cc"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jonschlinkert/assign-deep"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JS-ASSIGNDEEP-450211"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1014"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321", "CWE-20", "CWE-915" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-08-21T15:53:43Z",
    "nvd_published_at" : "2019-08-20T19:15:00Z"
  }
}