Skip to content

Exposure of Resource to Wrong Sphere in valib

Moderate severity GitHub Reviewed Published Apr 13, 2021 to the GitHub Advisory Database • Updated Feb 1, 2023

Package

npm valib (npm)

Affected versions

<= 2.0.0

Patched versions

None

Description

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.

References

Published by the National Vulnerability Database Feb 28, 2020
Reviewed Apr 9, 2021
Published to the GitHub Advisory Database Apr 13, 2021
Last updated Feb 1, 2023

Severity

Moderate

EPSS score

0.091%
(40th percentile)

Weaknesses

CVE ID

CVE-2019-10805

GHSA ID

GHSA-pmpr-vc5q-h3jw

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.