GHSA-pmpr-vc5q-h3jw

Suggest an improvement
Source
https://github.com/advisories/GHSA-pmpr-vc5q-h3jw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-pmpr-vc5q-h3jw/GHSA-pmpr-vc5q-h3jw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-pmpr-vc5q-h3jw
Aliases
Published
2021-04-13T15:21:59Z
Modified
2026-09-10T03:49:03Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-668"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-04-09T22:21:38Z",
    "nvd_published_at":  "2020-02-28T21:15:00Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / valib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
2.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-pmpr-vc5q-h3jw/GHSA-pmpr-vc5q-h3jw.json"