CVE-2019-10806: Vega util Improperly Controlled Modification Of Dynamically-Determined Vulnerability

MODERATE
Advisory Identifier: GHSA-6hwh-rqwf-cxxr
CVSS 4.3
CWE-1321 CWE-20 CWE-915
Published
Advisory Summary

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

CVE Identifier CVE-2019-10806
GHSA Identifier GHSA-6hwh-rqwf-cxxr
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Vega util
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (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.

vega-util fixed: 1.13.1
npm install vega-util@1.13.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 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

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.

CVE-2019-10806 Affected Vega util Versions

1 component(s)
Fixed Versions:
1.13.1
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?
CVE-2019-10806 is a security vulnerability in Vega util involving Improperly Controlled Modification of Dynamically-Determined Object Attributes in vega-util under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Vega util versions are affected?
Affected versions include releases prior to 1.13.1 across affected packages: vega-util.
What version fixes CVE-2019-10806?
Upgrading to 1.13.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is vega-util affected?
Yes, vega-util is affected in releases prior to 1.13.1. Upgrade your dependency to 1.13.1 or later.
What is the CVSS score of CVE-2019-10806?
CVE-2019-10806 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2019-10806?
CVE-2019-10806 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-10806?
Run the dependency tree command: 'npm ls vega-util'. 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-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 &#39;vega.mergeConfig&#39; 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"
  }
}