
CVE catalog
CVE-2026-2739
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, han
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.53% · Oct 25, 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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-bn.js | sid | 5.2.5+~5.2.0-1 | fixed |
| Debian | node-bn.js | forky | 5.2.5+~5.2.0-1 | fixed |
| Debian | node-bn.js | trixie | 5.2.1+~5.1.1-1 | vulnerable |
| Debian | node-bn.js | bookworm | 5.2.1+~5.1.1-1 | vulnerable |
| Npm | bn.js | Not reported | 5.2.3 | fixed |
| Cpe | node-bn.js | Not reported | Not reported | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-bn.js | source | sid | 5.2.3+~5.2.0-1 | not yet assigned | Not reported | [1128619] |
| Debian | node-bn.js | source | forky | 5.2.3+~5.2.0-1 | not yet assigned | Not reported | [1128619] |
| Debian | node-bn.js | source | trixie | (unfixed) | not yet assigned | Not reported | [1128619] |
| Debian | node-bn.js | source | bookworm | (unfixed) | not yet assigned | Not reported | [1128619] |
| Npm | bn.js | npm | Not reported | 5.2.3 | Not reported | Not reported | Not reported |
Notes
[trixie] node-bn.js: Minor issue [bookworm] node-bn.js: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-bn.js]Affected
Details (2)
5.2.1+~5.1.1-1· all · bookwormAffected
nvd · node-bn.js · debian · bookworm; nvd · node-bn.js · debian · 12
5.2.1+~5.1.1-1· all · bookwormAffected
nvd · node-bn.js · debian · bookworm; nvd · node-bn.js · debian · 12
[Debian 13 (Trixie)]
- [node-bn.js]Affected
Details (2)
5.2.1+~5.1.1-1· all · trixieAffected
nvd · node-bn.js · debian · 13
5.2.1+~5.1.1-1· all · trixieAffected
nvd · node-bn.js · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/]
- [https://github.com/advisories/GHSA-378v-28hj-76wf]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-2739]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-2739]
- [https://security-tracker.debian.org/tracker/CVE-2026-2739]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-2739.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2933.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]