CVE-2026-2739
February 20, 2026
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.
Affected Packages
https://github.com/indutny/bn.js.git (GITHUB):
Affected version(s) >=v0.1.0 <v5.2.3Fix Suggestion:
Update to version v5.2.3bn.js (NPM):
Affected version(s) >=0.1.0 <4.12.3Fix Suggestion:
Update to version 4.12.3bn.js (NPM):
Affected version(s) >=5.0.0 <5.2.3Fix Suggestion:
Update to version 5.2.3Related ResourcesĀ (9)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.5
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
Exploit Maturity
POC
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Weakness Type (CWE)
Loop with Unreachable Exit Condition ('Infinite Loop')
EPSS
Base Score:
0.01