CVE-2021-29486
JavaScript vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65959HIGH8.7
  • JavaScriptJavaScript
  • open-webui
NoYesDec 04, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-65945HIGH7.5
  • JavaScriptJavaScript
  • jws
NoYesDec 04, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management