cve.bz

CVE-2026-2739

5.5 mediumEPSS 0.5%

Medium (5.5). EPSS 0.5% chance of exploitation in the next 30 days. Fixed in bn.js 4.12.3, 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.

Severity

CVSS 4.0

5.5 medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
0.5% chance of exploitation in the next 30 days; higher than 44% of CVEs (scores of 2026-10-31)
CWE
CWE-835
Published
Modified
Record from
the NVD, synced

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-378v-28hj-76wfnpmbn.js<4.12.34.12.3
GHSA-378v-28hj-76wfnpmbn.js>=5.0.0 <5.2.35.2.3

References

Check your stackJSON