CVE-2026-2739

Medium

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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductBn.js
PublishedFeb 20, 2026
First seenFeb 20, 2026
Weakness typeCWE-835CWE-835

How to fix

Update
  • bn.js4.12.3, 5.2.3 or later

Affected products

ProductAffected versionsFixed in
bn.jsnpmv < 4.12.3, 5.0.0 ≤ v < 5.2.34.12.3, 5.2.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-2739 · Bn.js · Dark Radar