Home / bn.js / bn.js / CVE-2026-2739
CVE-2026-2739: is it exploited, and which versions of bn.js are affected and fixed?
CVE-2026-2739 is an infinite loop (denial of service) vulnerability in bn.js. 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, 14:08 UTC). Affected: bn.js before 4.12.3 and bn.js from 5.0.0 before 5.2.3 (GitHub advisory GHSA-378v-28hj-76wf). Fixed in 4.12.3 and 5.2.3 (GitHub advisory GHSA-378v-28hj-76wf). Severity: Medium (6.9, CVSS 4.0, from snyk).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:08 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:13 UTC.
What is CVE-2026-2739?
This affects versions of the package bn.js before 5.2.3. Calling maskn(0) on any BN instance corrupts the internal state, causing toString(), divmod(), and other methods to enter an infinite loop, hanging the process indefinitely.
From the CVE record by snyk, last updated February 20, 2026, 15:03 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| bn.js | before 5.2.3 | 5.2.3 |
As the CVE record by snyk states it, last updated February 20, 2026. 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?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | bn.js | < 4.12.3 | 4.12.3 | GHSA-378v-28hj-76wf |
| npm | bn.js | >= 5.0.0, < 5.2.3 | 5.2.3 | GHSA-378v-28hj-76wf |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated February 24, 2026. Summary: bn.js affected by an infinite loop.
How severe is CVE-2026-2739?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.9 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P | snyk |
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P | snyk |
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-2026-2739 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, February 20, 2026)
- EPSS
- 0.52% probability of exploitation activity in the next 30 days, percentile 45.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-835 Loop with Unreachable Exit Condition
Where are the vendor advisories and references?
- https://security.snyk.io/vuln/SNYK-JS-BNJS-15274301
- https://github.com/indutny/bn.js/issues/316
- https://github.com/indutny/bn.js/issues/186
- https://gist.github.com/Kr0emer/02370d18328c28b5dd7f9ac880d22a91
- https://github.com/indutny/bn.js/pull/317
- https://github.com/indutny/bn.js/commit/33df26b5771e824f303a79ec6407409376baa64b
Who found and reported it?
- Kr0emer (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- February 19, 2026
- Published
- February 20, 2026, 05:00 UTC
- CVE record updated
- February 20, 2026, 15:03 UTC by snyk
- NVD
- Deferred, last modified June 17, 2026, 10:31 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:13 UTC; KEV December 3, 2026, 14:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2026-2739
Is CVE-2026-2739 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:08 UTC. FIRST's EPSS gives it a 0.52% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of bn.js are affected by CVE-2026-2739?
bn.js before 4.12.3 and bn.js from 5.0.0 before 5.2.3, per the GitHub advisory GHSA-378v-28hj-76wf. The tables above give every range the sources list.
Which version fixes CVE-2026-2739?
4.12.3 and 5.2.3, per the GitHub advisory GHSA-378v-28hj-76wf. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-2739?
Medium (6.9, CVSS 4.0, from snyk). The severity table above shows each score with its source.
Where is the official record of CVE-2026-2739?
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.