CVEBrief

Home / DrPaulBrewer / cumulative-distribution-function / CVE-2021-29486

CVE-2021-29486: is it exploited, and which versions of DrPaulBrewer cumulative-distribution-function are affected and fixed?

CVE-2021-29486 is an improper input validation vulnerability in DrPaulBrewer cumulative-distribution-function. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:39 UTC). Affected: cumulative-distribution-function before 2.0.0 (GitHub advisory GHSA-58qp-5328-v7mh). Fixed in 2.0.0 (GitHub advisory GHSA-58qp-5328-v7mh). Severity: High (7.5, CVSS 3.1, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:39 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:58 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 18:39 UTC
Affected
cumulative-distribution-function before 2.0.0
GitHub advisory GHSA-58qp-5328-v7mh
Fixed in
2.0.0
GitHub advisory GHSA-58qp-5328-v7mh
Severity
High 7.5
CVSS 3.1 from GitHub_M
Exploit odds (EPSS)
1.98% in 30 days
higher than 81% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2021-29486?

Improper Input Validation and Loop with Unreachable Exit Condition ('Infinite Loop') in cumulative-distribution-function

cumulative-distribution-function is an open source npm library used which calculates statistical cumulative distribution function from data array of x values. In versions prior to 2.0.0 apps using this library on improper data may crash or go into an infinite-loop. In the case of a nodejs server-app using this library to act on invalid non-numeric data, the nodejs server may crash. This may affect other users of this server and/or require the server to be rebooted for proper operation. In the case of a browser app using this library to act on invalid non-numeric data, that browser may crash or lock up. A flaw enabling an infinite-loop was discovered in the code for evaluating the cumulative-distribution-function of input data. Although the documentation explains that numeric data is required, some users may confuse an array of strings like ["1","2","3","4","5"] for numeric data [1,2,3,4,5] when it is in fact string data. An infinite loop is possible when the cumulative-distribution-function is evaluated for a given point when the input data is string data rather than type `number`. This vulnerability enables an infinite-cpu-loop denial-of-service-attack on any app using npm:cumulative-distribution-function v1.0.3 or earlier if the attacker can supply malformed data to the library. The vulnerability could also manifest if a data source to be analyzed changes data type from Arrays of number (proper) to Arrays of string (invalid, but undetected by earlier version of the library). Users should upgrade to at least v2.0.0, or the latest version. Tests for several types of invalid data have been created, and version 2.0.0 has been tested to reject this invalid data by throwing a `TypeError()` instead of processing it. Developers using this library may wish to adjust their app's code slightly to better tolerate or handle this TypeError. Apps performing proper numeric data validation before sending data to this library should be mostly unaffected by this patch. The vulnerability can be mitigated in older versions by ensuring that only finite numeric data of type `Array[number]` or `number` is passed to `cumulative-distribution-function` and its `f(x)` function, respectively.

From the CVE record by GitHub_M, last updated August 3, 2024, 22:11 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
DrPaulBrewercumulative-distribution-function< 2.0.0

As the CVE record by GitHub_M states it, last updated August 3, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
npmcumulative-distribution-function< 2.0.02.0.0GHSA-58qp-5328-v7mh

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 11, 2022. Summary: cumulative-distribution-function Infinite Loop vulnerability.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
cumulative-distribution-function projectcumulative-distribution-functionbefore 2.0.0application

NVD analysis (status Modified), last modified June 17, 2026, 03:47 UTC.

How severe is CVE-2021-29486?

ScoreVersionVectorSource
High 7.5CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HGitHub_M
High 7.5CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HNVD
Medium 5.0CVSS 2.0AV:N/AC:L/Au:N/C:N/I:N/A:PNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2021-29486 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
EPSS
1.98% probability of exploitation activity in the next 30 days, percentile 81.2 (FIRST EPSS, scores of December 3, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
March 30, 2021
Published
April 30, 2021, 17:20 UTC
CVE record updated
August 3, 2024, 22:11 UTC by GitHub_M
NVD
Modified, last modified June 17, 2026, 03:47 UTC
Last checked
CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:58 UTC; KEV December 3, 2026, 18:39 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

Questions about CVE-2021-29486

Is CVE-2021-29486 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:39 UTC. FIRST's EPSS gives it a 1.98% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of DrPaulBrewer cumulative-distribution-function are affected by CVE-2021-29486?

cumulative-distribution-function before 2.0.0, per the GitHub advisory GHSA-58qp-5328-v7mh. The tables above give every range the sources list.

Which version fixes CVE-2021-29486?

2.0.0, per the GitHub advisory GHSA-58qp-5328-v7mh. Check the vendor's advisory before you rely on it.

How severe is CVE-2021-29486?

High (7.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.

Where is the official record of CVE-2021-29486?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.