Vulnerability in Bn.js
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.
EPSS: 0.005 (37.9th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
Affected products
- N/a Bn.js — versions 0
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-2739?
- CVE-2026-2739 is a medium-severity vulnerability in Bn.js, classified under Loop with Unreachable Exit Condition (Infinite Loop). CVSS score: 5.3/10. Published 2026-02-20.
- How severe is CVE-2026-2739?
- Medium severity. CVSS v3 base score is 5.3 out of 10.