{"cve":"CVE-2026-2739","nvd":{"published":"2026-02-20T05:17:53.033","modified":"2026-06-17T10:31:38.003","status":"Deferred","description":"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.","cvss_v4":{"vector":"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","score":5.5},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3},"cwes":["CWE-835"],"references":["https://gist.github.com/Kr0emer/02370d18328c28b5dd7f9ac880d22a91","https://github.com/indutny/bn.js/commit/33df26b5771e824f303a79ec6407409376baa64b","https://github.com/indutny/bn.js/issues/186","https://github.com/indutny/bn.js/issues/316","https://github.com/indutny/bn.js/pull/317"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:23:35.260773158+00:00"},"epss":{"cve":"CVE-2026-2739","score":0.00531,"percentile":0.44897,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-378v-28hj-76wf","url":"https://osv.dev/vulnerability/GHSA-378v-28hj-76wf","summary":"bn.js affected by an infinite loop","modified":"2026-09-10T03:50:33.815513385Z","packages":[{"ecosystem":"npm","name":"bn.js","purl":"pkg:npm/bn.js","ranges":["<4.12.3"],"fixed":["4.12.3"]},{"ecosystem":"npm","name":"bn.js","purl":"pkg:npm/bn.js","ranges":[">=5.0.0 <5.2.3"],"fixed":["5.2.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}