{
  "schema_version": "1.4.0",
  "id": "GHSA-pmpr-vc5q-h3jw",
  "modified": "2021-04-09T22:21:38Z",
  "published": "2021-04-13T15:21:59Z",
  "aliases": [
    "CVE-2019-10805"
  ],
  "summary": "Exposure of Resource to Wrong Sphere in valib",
  "details": "valib through 2.0.0 allows Internal Property Tampering. A maliciously crafted JavaScript object can bypass several inspection functions provided by valib. Valib uses a built-in function (hasOwnProperty) from the unsafe user-input to examine an object. It is possible for a crafted payload to overwrite this function to manipulate the inspection results to bypass security checks.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "valib"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "2.0.0"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-10805"
    },
    {
      "type": "WEB",
      "url": "https://snyk.io/vuln/SNYK-JS-VALIB-559015"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/package/valib"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-668"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-04-09T22:21:38Z",
    "nvd_published_at": "2020-02-28T21:15:00Z"
  }
}