CVE-2026-2739

published 20 Feb 2026 · updated 16 Nov 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.

5.3MediumCVSS 5.3EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 5.2.3.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<5.2.35.2.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-2739 severity on Zeptric[![CVE-2026-2739](https://zeptric.io/badge/cve/CVE-2026-2739.svg)](https://zeptric.io/cve/CVE-2026-2739)