CVE-2020-8116: Dot prop Dot-prop Prototype Pollution Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-ff7x-qrg7-qggm
CVSS 7.3
CWE-1321 CWE-425 CWE-471
Published
Advisory Summary

CVE-2020-8116 is a HIGH (CVSS 7.3) dot-prop prototype pollution vulnerability vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Dot prop libraries in the npm ecosystem. The issue involves dot-prop prototype pollution vulnerability. Remediation is available by upgrading affected packages to version 4.2.1, 5.1.1.

CVE-2020-8116 at a Glance

CVE Identifier CVE-2020-8116
GHSA Identifier GHSA-ff7x-qrg7-qggm
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Dot prop
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.3

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:N/S:U/C:L/I:L/A:L).

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 Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2020-8116

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

dot-prop fixed: 4.2.1
npm install dot-prop@4.2.1
dot-prop fixed: 5.1.1
npm install dot-prop@5.1.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 dot-prop

How to Check if You Are Affected

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

npm ls dot-prop

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

Note: The npm ls dot-prop 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 Dot prop, 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

Prototype pollution vulnerability in dot-prop npm package versions before 4.2.1 and versions 5.x before 5.1.1 allows an attacker to add arbitrary properties to JavaScript language constructs such as objects.

CVE-2020-8116 Affected Dot prop Versions

2 component(s)
Fixed Versions:
4.2.15.1.1
Product / Package Ecosystem Affected Versions Fixed Version
dot-prop
npm
< 4.2.1
4.2.1
dot-prop
npm
≥ 5.0.0
< 5.1.1
5.1.1

References

Frequently Asked Questions

What is CVE-2020-8116?
CVE-2020-8116 is a security vulnerability in Dot prop involving dot-prop Prototype Pollution vulnerability under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Dot prop versions are affected?
Affected versions include releases prior to 4.2.1, 5.1.1 across affected packages: dot-prop.
What version fixes CVE-2020-8116?
Upgrading to 4.2.1, 5.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dot-prop affected?
Yes, dot-prop is affected in releases prior to 4.2.1, 5.1.1. Upgrade your dependency to 4.2.1, 5.1.1 or later.
What is the CVSS score of CVE-2020-8116?
CVE-2020-8116 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2020-8116?
CVE-2020-8116 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-2020-8116?
Run the dependency tree command: 'npm ls dot-prop'. 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-ff7x-qrg7-qggm",
  "modified" : "2022-08-11T14:58:19Z",
  "published" : "2020-07-29T20:56:59Z",
  "aliases" : [ "CVE-2020-8116" ],
  "summary" : "dot-prop Prototype Pollution vulnerability",
  "details" : "Prototype pollution vulnerability in dot-prop npm package versions before 4.2.1 and versions 5.x before 5.1.1 allows an attacker to add arbitrary properties to JavaScript language constructs such as objects.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "dot-prop"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.2.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "dot-prop"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-8116"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sindresorhus/dot-prop/issues/63"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sindresorhus/dot-prop/commit/3039c8c07f6fdaa8b595ec869ae0895686a7a0f2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sindresorhus/dot-prop/commit/c914124f418f55edea27928e89c94d931babe587"
  }, {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/719856"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-ff7x-qrg7-qggm"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sindresorhus/dot-prop"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sindresorhus/dot-prop/tree/v4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321", "CWE-425", "CWE-471" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-07-29T20:51:37Z",
    "nvd_published_at" : "2020-02-04T20:15:00Z"
  }
}