CVE-2026-2739
bn.js: bn.js: Denial of Service via calling maskn(0)
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · February 20, 2026
Updated · November 1, 2026
Description
A flaw was found in bn.js. When calling the maskn(0) function on a BN instance, there is potential for this action to corrupt the internal state of the library, causing critical methods such as toString() and divmod() to enter an infinite loop. The primary consequence is a Denial of Service (DoS), where the affected process hangs indefinitely.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CWE-835 · Loop with Unreachable Exit Condition