CVE-2019-10805: Exposure of Resource to Wrong Sphere in valib
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.45518%
CWE
Published
4/13/2021
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
valib | npm | <= 2.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from valib's inspection functions directly using the object's own hasOwnProperty
method. The PoC demonstrates that overriding this method in user-controlled objects affects: 1) isEmpty()
(returns false for non-empty objects), 2) countKeys()
(reports incorrect key counts), and 3) hasValue()
(fails to detect existing values). These functions are vulnerable because they trust the object's potentially compromised hasOwnProperty
implementation instead of using the protected Object.prototype.hasOwnProperty
method.