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.
Metrics
Affected Vendors & Products
References
History
Fri, 20 Feb 2026 16:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
Fri, 20 Feb 2026 12:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Title | bn.js: bn.js: Denial of Service via calling maskn(0) | |
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
Fri, 20 Feb 2026 10:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Indutny
Indutny bn.js |
|
| Vendors & Products |
Indutny
Indutny bn.js |
Fri, 20 Feb 2026 05:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Weaknesses | CWE-835 | |
| References |
|
|
| Metrics |
cvssV3_1
|
Status: PUBLISHED
Assigner: snyk
Published: 2026-02-20T05:00:08.253Z
Updated: 2026-02-20T15:03:53.743Z
Reserved: 2026-02-19T10:59:37.687Z
Link: CVE-2026-2739
Updated: 2026-02-20T15:02:17.287Z
Status : Awaiting Analysis
Published: 2026-02-20T05:17:53.033
Modified: 2026-02-20T13:49:47.623
Link: CVE-2026-2739