
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-29486 affects the cumulative-distribution-function npm package versions 1.0.3 and earlier. The vulnerability was discovered in April 2021 and involves improper input validation that can lead to an infinite CPU loop denial-of-service condition. The affected package calculates statistical cumulative distribution functions from data arrays of x values (GitHub Advisory).
The vulnerability stems from improper input validation where string data is processed instead of numeric data. For example, when an array of strings like ["1","2","3","4","5"] is provided instead of numeric data [1,2,3,4,5], the function can enter an infinite loop during the evaluation of the cumulative-distribution-function. The issue has been assigned a CVSS v3.1 Base Score of 7.5 (HIGH) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).
The vulnerability can cause applications using the library to crash or enter an infinite loop. In server environments, this can lead to nodejs server crashes affecting multiple users and requiring server reboots. For browser applications, it can cause browser crashes or lockups. The vulnerability enables a denial-of-service attack if an attacker can supply malformed data to the library (GitHub Advisory).
Users should upgrade to version 2.0.0 or later, which includes input validation that throws a TypeError for invalid data instead of processing it. For those unable to upgrade, the vulnerability can be mitigated by ensuring only finite numeric data of type Array[number] or number is passed to the function. The patch includes tests for various types of invalid data and proper error handling (GitHub PR).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."