{"id":"CVE-2026-2739","published":"2026-02-20T05:00:08Z","modified":"2026-02-20T15:03:53Z","title":"This affects versions of the package bn.js before 5.2.3","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00523,"percentile":0.45285,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-BNJS-15274301","tags":[]},{"url":"https://github.com/indutny/bn.js/issues/316","tags":[]},{"url":"https://github.com/indutny/bn.js/issues/186","tags":[]},{"url":"https://gist.github.com/Kr0emer/02370d18328c28b5dd7f9ac880d22a91","tags":[]},{"url":"https://github.com/indutny/bn.js/pull/317","tags":[]},{"url":"https://github.com/indutny/bn.js/commit/33df26b5771e824f303a79ec6407409376baa64b","tags":[]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":9.06},{"name":"CVSS severity","points":3.71}]},"affectedVersions":[{"vendor":"n/a","product":"bn.js","versions":["< 5.2.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-20T15:00:34.443345Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"bn.js","vulnerableRanges":["<4.12.3",">=5.0.0, <5.2.3"],"patched":["4.12.3","5.2.3"],"from":["GHSA-378v-28hj-76wf"],"provenance":"source"}],"summary":{"text":"The bn.js JavaScript big-number library, in versions before 5.2.3, has a flaw where calling maskn(0) on any BN instance corrupts its internal state, causing methods such as toString() and divmod() to enter an infinite loop. An attacker who can get such a call made with a value of 0 can hang the process indefinitely, with no authentication, user interaction, or special configuration required beyond reaching that code path.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:40Z"},"euvd":{"id":"EUVD-2026-8025","exploited":false,"provenance":"source"}}