CVE-2026-2739
bn.js affected by an infinite loop
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
6.9
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.
- Record
CVE-2026-2739- CVSS 4.0
- 6.9 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/E:P - Weakness
- CWE-835
- Updated
- 2026-11-02
EUVDEUVD-2026-8025
6.9
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.
- Record
EUVD-2026-8025- CVSS 4.0
- 6.9 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-378v-28hj-76wf
5.5
bn.js affected by an infinite loop
This affects versions of the package bn.js before 4.12.3 and 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.
- Record
GHSA-378v-28hj-76wf- 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 - Weakness
- CWE-835
- Updated
- 2026-11-02
NVD
5.5
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.
- Record
CVE-2026-2739- 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/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 - 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 - Weakness
- CWE-835
- Updated
- 2026-11-02
OSV
5.5
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.
- Record
CVE-2026-2739- 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 - Weakness
- CWE-835
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2026-2739
5.5
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.
- Record
DEBIAN-CVE-2026-2739- 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/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 - Updated
- 2026-11-02
Show 14 moreShow less
OSVGHSA-378v-28hj-76wf
5.5
bn.js affected by an infinite loop
This affects versions of the package bn.js before 4.12.3 and 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.
- Record
GHSA-378v-28hj-76wf- 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 - Weakness
- CWE-835
- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2026-2739
5.3
CVE-2026-2739 in @rootio/bn.js - Patched by Root
Root has patched CVE-2026-2739 in the @rootio/bn.js package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2026-2739- 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 - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-2739
5.5
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.
- Record
UBUNTU-CVE-2026-2739- 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 - Updated
- 2026-11-02
OSVAZL-78290 No score
CVE-2026-2739 affecting package reaper 3.1.1-22
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.
- Record
AZL-78290- Updated
- 2026-11-02
OSVCLSA-2026-1779065199 No score
TuxCare security update for bn.js (1 CVE)
TuxCare rebuilt bn.js to address 1 CVE. Fixed in 4.12.2-tuxcare.1.
- Record
CLSA-2026-1779065199- Updated
- 2026-11-02
OSVCLSA-2026-1779065201 No score
TuxCare security update for bn.js (1 CVE)
TuxCare rebuilt bn.js to address 1 CVE. Fixed in 5.2.2-tuxcare.1.
- Record
CLSA-2026-1779065201- Updated
- 2026-11-02
OSVCLSA-2026-1782176259 No score
TuxCare security update for bn.js (1 CVE)
TuxCare rebuilt bn.js to address 1 CVE. Fixed in 4.11.8-tuxcare.1.
- Record
CLSA-2026-1782176259- Updated
- 2026-11-02
OSVCLSA-2026-1782176267 No score
TuxCare security update for bn.js (1 CVE)
TuxCare rebuilt bn.js to address 1 CVE. Fixed in 4.12.0-tuxcare.2.
- Record
CLSA-2026-1782176267- Updated
- 2026-11-02
OSVCLSA-2026-1789159797 No score
TuxCare security update for bn.js (1 CVE)
TuxCare rebuilt bn.js to address 1 CVE. Fixed in 4.11.6-tuxcare.1.
- Record
CLSA-2026-1789159797- Updated
- 2026-11-02
OSVCLSA-2026-1790541906 No score
TuxCare security update for bn.js (1 CVE)
TuxCare rebuilt bn.js to address 1 CVE. Fixed in 4.11.9-tuxcare.1.
- Record
CLSA-2026-1790541906- Updated
- 2026-11-02
OSVCLSA-2026-1791282392 No score
TuxCare security update for bn.js (1 CVE)
TuxCare rebuilt bn.js to address 1 CVE. Fixed in 5.2.1-tuxcare.1.
- Record
CLSA-2026-1791282392- Updated
- 2026-11-02
OSVCLSA-2026-1792488566 No score
TuxCare security update for bn.js (1 CVE)
TuxCare rebuilt bn.js to address 1 CVE. Fixed in 5.2.0-tuxcare.1.
- Record
CLSA-2026-1792488566- Updated
- 2026-11-02
OSVCLSA-2026-1792508499 No score
TuxCare security update for bn.js (1 CVE)
TuxCare rebuilt bn.js to address 1 CVE. Fixed in 2.0.4-tuxcare.1.
- Record
CLSA-2026-1792508499- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:11126-1 No score
velociraptor-0.7.0.4.git185.a5708584-2.1 on GA media
These are all security issues fixed in the velociraptor-0.7.0.4.git185.a5708584-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:11126-1- Updated
- 2026-11-02
Affected packages
| Package | Affected | Fixed |
|---|---|---|
bn.jsnpm |
before 4.12.3 | 4.12.3 |
bn.jsnpm |
5.0.0 up to 5.2.3 | 5.2.3 |
reaperAzure Linux:2 |
through 3.1.1-22 | None known |
bn.jsTuxCare:npm |
4.12.2-tuxcare.0 up to 4.12.2-tuxcare.1, plus listed versions 4.12.2 |
4.12.2-tuxcare.1 |
bn.jsTuxCare:npm |
5.2.2-tuxcare.0 up to 5.2.2-tuxcare.1, plus listed versions 5.2.2 |
5.2.2-tuxcare.1 |
bn.jsTuxCare:npm |
4.11.8-tuxcare.0 up to 4.11.8-tuxcare.1, plus listed versions 4.11.8 |
4.11.8-tuxcare.1 |
bn.jsTuxCare:npm |
4.12.0-tuxcare.0 up to 4.12.0-tuxcare.2, plus listed versions 4.12.04.12.0-tuxcare.1 |
4.12.0-tuxcare.2 |
bn.jsTuxCare:npm |
4.11.6-tuxcare.0 up to 4.11.6-tuxcare.1, plus listed versions 4.11.6 |
4.11.6-tuxcare.1 |
bn.jsTuxCare:npm |
4.11.9-tuxcare.0 up to 4.11.9-tuxcare.1, plus listed versions 4.11.9 |
4.11.9-tuxcare.1 |
bn.jsTuxCare:npm |
5.2.1-tuxcare.0 up to 5.2.1-tuxcare.1, plus listed versions 5.2.1 |
5.2.1-tuxcare.1 |
Show 15 moreShow less
| Package | Affected | Fixed |
|---|---|---|
bn.jsTuxCare:npm |
5.2.0-tuxcare.0 up to 5.2.0-tuxcare.1, plus listed versions 5.2.0 |
5.2.0-tuxcare.1 |
bn.jsTuxCare:npm |
2.0.4-tuxcare.0 up to 2.0.4-tuxcare.1, plus listed versions 2.0.4 |
2.0.4-tuxcare.1 |
node-bn.jsDebian:12 |
All versions, plus listed versions 5.2.1+~5.1.1-15.2.3+~5.2.0-15.2.5+~5.2.0-1 |
None known |
node-bn.jsDebian:13 |
All versions, plus listed versions 5.2.1+~5.1.1-15.2.3+~5.2.0-15.2.5+~5.2.0-1 |
None known |
node-bn.jsDebian:14 |
before 5.2.3+~5.2.0-1, plus listed versions 5.2.1+~5.1.1-1 |
5.2.3+~5.2.0-1 |
@rootio/bn.jsRoot:npm |
before 4.12.2-root.io.1 | 4.12.2-root.io.14.11.9-root.io.14.12.2-root.io.24.11.9-root.io.24.12.1-root.io.15.2.1-root.io.1 |
bn.jsRoot:npm |
before 4.12.2-aikido.2 | 4.12.2-aikido.24.11.9-aikido.24.12.1-aikido.15.2.1-aikido.1 |
node-bn.jsUbuntu:18.04:LTS |
All versions, plus listed versions 4.11.8-1 |
None known |
node-bn.jsUbuntu:20.04:LTS |
All versions, plus listed versions 5.0.0-15.0.0-25.1.1-15.1.1-2 |
None known |
node-bn.jsUbuntu:22.04:LTS |
All versions, plus listed versions 5.1.3-15.2.0-3 |
None known |
node-bn.jsUbuntu:24.04:LTS |
All versions, plus listed versions 5.2.1+~5.1.1-1 |
None known |
node-bn.jsUbuntu:25.10 |
All versions, plus listed versions 5.2.1+~5.1.1-1 |
None known |
node-bn.jsUbuntu:26.10 |
All versions, plus listed versions 5.2.3+~5.2.0-15.2.5+~5.2.0-1 |
None known |
node-bn.jsUbuntu:26.04:LTS |
All versions, plus listed versions 5.2.1+~5.1.1-15.2.3+~5.2.0-1 |
None known |
velociraptoropenSUSE:Tumbleweed From an advisory covering 49 CVEs |
before 0.7.0.4.git185.a5708584-2.1 | 0.7.0.4.git185.a5708584-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-2739 is a medium vulnerability (CVSS 6.9) in bn.js, published February 20, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.53%, the 45th percentile. Fixed in bn.js 4.12.3.
References
security.snyk.io/vuln/SNYK-JS-BNJS-15274301
github.com/indutny/bn.js/issues/316
github.com/indutny/bn.js/issues/186
gist.github.com/Kr0emer/02370d18328c28b5dd7f9ac880d22a91
github.com/indutny/bn.js/pull/317
github.com/indutny/bn.js/commit/33df26b5771e824f303a79ec6407409376baa64b
Show 57 moreShow less
nvd.nist.gov/vuln/detail/CVE-2026-2739
github.com/indutny/bn.js/releases/tag/v5.2.3
github.com/advisories/GHSA-378v-28hj-76wf
github.com/CVEProject/cvelistV5/tree/main/cves/2026/2xxx/CVE-2026-2739.json
security-tracker.debian.org/tracker/CVE-2026-2739
github.com/indutny/bn.js
ubuntu.com/security/CVE-2026-2739
cve.org/CVERecord?id=CVE-2026-2739
suse.com/security/cve/CVE-2023-45288
suse.com/security/cve/CVE-2024-45339
suse.com/security/cve/CVE-2025-13465
suse.com/security/cve/CVE-2025-22868
suse.com/security/cve/CVE-2025-22869
suse.com/security/cve/CVE-2025-22870
suse.com/security/cve/CVE-2025-22872
suse.com/security/cve/CVE-2025-24358
suse.com/security/cve/CVE-2025-47911
suse.com/security/cve/CVE-2025-58058
suse.com/security/cve/CVE-2025-58181
suse.com/security/cve/CVE-2025-58190
suse.com/security/cve/CVE-2025-5889
suse.com/security/cve/CVE-2025-64718
suse.com/security/cve/CVE-2025-6545
suse.com/security/cve/CVE-2025-6547
suse.com/security/cve/CVE-2025-7783
suse.com/security/cve/CVE-2026-1229
suse.com/security/cve/CVE-2026-25128
suse.com/security/cve/CVE-2026-25680
suse.com/security/cve/CVE-2026-25681
suse.com/security/cve/CVE-2026-26278
suse.com/security/cve/CVE-2026-26996
suse.com/security/cve/CVE-2026-27136
suse.com/security/cve/CVE-2026-2739
suse.com/security/cve/CVE-2026-27606
suse.com/security/cve/CVE-2026-27904
suse.com/security/cve/CVE-2026-33036
suse.com/security/cve/CVE-2026-33186
suse.com/security/cve/CVE-2026-33487
suse.com/security/cve/CVE-2026-33814
suse.com/security/cve/CVE-2026-34986
suse.com/security/cve/CVE-2026-39821
suse.com/security/cve/CVE-2026-39827
suse.com/security/cve/CVE-2026-39828
suse.com/security/cve/CVE-2026-39829
suse.com/security/cve/CVE-2026-39830
suse.com/security/cve/CVE-2026-39831
suse.com/security/cve/CVE-2026-39832
suse.com/security/cve/CVE-2026-39833
suse.com/security/cve/CVE-2026-39834
suse.com/security/cve/CVE-2026-39835
suse.com/security/cve/CVE-2026-42039
suse.com/security/cve/CVE-2026-42502
suse.com/security/cve/CVE-2026-42506
suse.com/security/cve/CVE-2026-42508
suse.com/security/cve/CVE-2026-46595
suse.com/security/cve/CVE-2026-46597
suse.com/security/cve/CVE-2026-46598