Vulnerabilities in pkg:npm/dot-prop
PACKAGECVE-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.
pkg:npm/dot-prop
Vulnerability advisories affecting package pkg:npm/dot-prop. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-ff7x-qrg7-qggm | CVE-2020-8116 | HIGH | dot-prop Prototype Pollution vulnerability |
CVE-2020-8116 at a Glance
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).
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.
npm install dot-prop@4.2.1
npm install dot-prop@5.1.1
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
CVE-2020-8116 Affected Dot prop Versions
2 component(s)| 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?
Which Dot prop versions are affected?
What version fixes CVE-2020-8116?
Is dot-prop affected?
What is the CVSS score of CVE-2020-8116?
What CWE is associated with CVE-2020-8116?
How can I check npm dependencies for CVE-2020-8116?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}