PT-2026-20998 · Bn.Js · Bn.Js
Jiahao Li
+1
·
Published
2026-02-20
·
Updated
2026-05-18
·
CVE-2026-2739
CVSS v4.0
5.5
Medium
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Name of the Vulnerable Software and Affected Versions
bn.js versions prior to 5.2.3
Description
The bn.js package is susceptible to a state corruption issue. Calling the
maskn(0) function on any BN instance corrupts the internal state. This corruption causes methods like toString(), divmod(), and others to enter an infinite loop, resulting in a process hang.Recommendations
Update bn.js to version 5.2.3 or later.
Fix
DoS
Infinite Loop
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Bn.Js