bn.js
Affected
- introduced
0, fixed4.12.3(semver)
Fixed versions
4.12.3
Fix
- Fixed version
4.12.3npm install [email protected]
Advisory
Also known as: CVE-2026-2739
bn.js affected by an infinite loop
This affects versions of the package bn.js before 4.12.3 and 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.
Medium Basis: The source's own band: MODERATE
0, fixed 4.12.3 (semver)4.12.3
4.12.3npm install [email protected]5.0.0, fixed 5.2.3 (semver)5.2.3
5.2.3npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0