CVE-2026-2739
published medium CVSS 4.0 · 6.9bn.js: Denial of Service via calling maskn(0)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | bn.js0 to < 5.2.3 | Affected | Not stated | snyk |
| SUSE / openSUSE | openSUSE-Tumbleweed | velociraptoraarch64 | Advisory build | 0.7.0.4.git185.a5708584-2.1 | OPENSUSE-SU-2026:11126-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | velociraptorppc64le | Advisory build | 0.7.0.4.git185.a5708584-2.1 | OPENSUSE-SU-2026:11126-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | velociraptors390x | Advisory build | 0.7.0.4.git185.a5708584-2.1 | OPENSUSE-SU-2026:11126-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | velociraptorx86_64 | Advisory build | 0.7.0.4.git185.a5708584-2.1 | OPENSUSE-SU-2026:11126-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.3 | medium | snyk · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | bn.js | 0 to < 5.2.3 (affected · semver) | snyk · cna |
Weaknesses
1- CWE-835 Infinite loop
References
6- https://gist.github.com/Kr0emer/02370d18328c28b5dd7f9ac880d22a91
- https://github.com/indutny/bn.js/commit/33df26b5771e824f303a79ec6407409376baa64b
- https://github.com/indutny/bn.js/issues/186
- https://github.com/indutny/bn.js/issues/316
- https://github.com/indutny/bn.js/pull/317
- https://security.snyk.io/vuln/SNYK-JS-BNJS-15274301
Provider assertions
2snyk · cna
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6d31202bb17d4716d3bf4be600a3040ef66ce7fe76a535603ccb40bde9bcccb8
- Ingested
- 23 Sep 2026, 09:09:07 UTC
- Source record
- Official CVE record