CVE-2019-10806: Vega util Improperly Controlled Modification Of Dynamically-Determined Vulnerability
MODERATECVE-2019-10806 is a MODERATE (CVSS 4.3) improperly controlled modification of dynamically-determined vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Vega util libraries in the npm ecosystem. The issue involves improperly controlled modification of dynamically-determined object attributes in vega-util. Remediation is available by upgrading affected packages to version 1.13.1.
CVE-2019-10806 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2019-10806
To remediate this vulnerability, upgrade all affected Vega util 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 vega-util@1.13.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls vega-util
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2019-10806, inspect your project dependencies using npm:
npm ls vega-util
Analyze the terminal output to locate any version of Vega util in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.13.1), your application is affected.
Note: The npm ls vega-util 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 Vega util, 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-10806 Affected Vega util Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
vega-util
|
npm |
< 1.13.1
|
1.13.1
|
References
Frequently Asked Questions
What is CVE-2019-10806?
Which Vega util versions are affected?
What version fixes CVE-2019-10806?
Is vega-util affected?
What is the CVSS score of CVE-2019-10806?
What CWE is associated with CVE-2019-10806?
How can I check npm dependencies for CVE-2019-10806?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6hwh-rqwf-cxxr",
"modified" : "2021-07-28T18:36:56Z",
"published" : "2021-05-07T16:32:02Z",
"aliases" : [ "CVE-2019-10806" ],
"summary" : "Improperly Controlled Modification of Dynamically-Determined Object Attributes in vega-util",
"details" : "vega-util prior to 1.13.1 allows manipulation of object prototype. The 'vega.mergeConfig' method within vega-util could be tricked into adding or modifying properties of the Object.prototype.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "vega-util"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.13.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10806"
}, {
"type" : "WEB",
"url" : "https://github.com/vega/vega/commit/8f33a0b5170d7de4f12fc248ec0901234342367b"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-VEGAUTIL-559223"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321", "CWE-20", "CWE-915" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-04-23T20:26:16Z",
"nvd_published_at" : "2020-03-09T16:15:00Z"
}
}