CVE-2026-2739 json
bn.js affected by an infinite loop
published 2026-02-20 8 mo ago modified 2026-09-10 1 mo ago also GHSA-378v-28hj-76wf , EUVD-2026-8025
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 45%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm bn.js 4.12.3, 5.2.3
- n/a bn.js 5.2.3
- node-bn.js Debian 14 5.2.3+~5.2.0-1
debian advisories DEBIAN-CVE-2026-2739
- velociraptor openSUSE Tumbleweed 0.7.0.4.git185.a5708584-2.1
opensuse advisories openSUSE-SU-2026:11126-1
- github.com/indutny/bn.js@33df26b commit
- github.com/indutny/bn.js#317 pull request
- github.com/indutny/bn.js/releases/tag/v5.2.3 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-2739 updated cvss 5.3
bn.js: bn.js: Denial of Service via calling maskn(0)
-
Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/kibana6-rhel8, openshift-logging/elasticsearch6-rhel9, openshift-logging/logging-curator5-rhel9, openshift-logging/elasticsearch-proxy-rhel9, openshift-logging/elasticsearch-rhel9-operator, openshift-logging/elasticsearch-operator-bundleaffected: no fix planned “Out of support scope”
-
Red Hat OpenShift Pipelines openshift-pipelines/pipelines-hub-ui-rhel8, openshift-pipelines/pipelines-hub-ui-rhel9affected: no fix available “Fix deferred”
-
Red Hat OpenShift Service Mesh 2 openshift-service-mesh/kiali-ossmc-rhel8affected: no fix planned “Out of support scope”
-
Red Hat OpenShift Service Mesh 3 openshift-service-mesh/kiali-ossmc-rhel9, openshift-service-mesh/kiali-rhel9-operator, openshift-service-mesh/kiali-operator-bundleaffected: no fix available, no fix planned “Out of support scope”
-
Red Hat 3scale API Management Platform 2 3scale-amp20/system, 3scale-amp21/system, 3scale-amp22/system, 3scale-amp24/system, 3scale-amp25/system, 3scale-amp26/system, +3 moreaffected: no fix planned “Out of support scope”
-
Red Hat build of Apicurio Registry 2 io.apicurio-apicurio-registry Red Hat Developer Hub 1 rhdh/rhdh-hub-rhel9 Red Hat Enterprise Linux 8 pcs, grafana, mozjs60, pcs-snmp, grafana-loki, grafana-mssql, +11 moreaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 9 gjs, pcs, polkit, pcs-snmp, polkit-libsaffected: no fix available, no fix planned “Out of support scope”
-
Red Hat Fuse 7 io.apicurio-apicurito, io.syndesis-syndesis-parentaffected: no fix planned “Out of support scope”
show 4 moreshow fewer
-
Red Hat OpenShift Container Platform 4 openshift4/ose-console, openshift4/ose-console-rhel9 Red Hat OpenShift Dev Spaces devspaces/dashboard-rhel9affected: no fix available “Fix deferred”
-
Red Hat Process Automation 7 org.uberfire-uberfire-parent, org.kie.workbench-kie-wb-common, org.kie-process-migration-serviceaffected: no fix planned “Out of support scope”
-
Red Hat Quay 3 quay/quay-rhel8, quay/quay-rhel9affected: no fix available, no fix planned “Out of support scope”
-
Red Hat streams for Apache Kafka 2 com.github.streamshub-console Red Hat streams for Apache Kafka 3 com.github.streamshub-consoleaffected: no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 8 mo ago
Exploit prediction
0.53% chance of exploitation in the next 30 days, higher than 45% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.9 | 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 |
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P |
| CNA | 4.0 | 5.5 | 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 |
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | bn.js | <4.12.3 >=5.0.0, <5.2.3 |
4.12.3 5.2.3 |
Affected products
- n/a bn.js
Classification
- Weakness
-
- CWE-835 Loop with Unreachable Exit Condition
References
-
github.com
/indutny/bn.js/pull/317
web
-
github.com
/indutny/bn.js/commit/33df26b5771e824f303a79ec6407409376baa64b
web
-
security.snyk.io
/vuln/SNYK-JS-BNJS-15274301
web
-
github.com
/indutny/bn.js/issues/316
web
-
github.com
/indutny/bn.js/issues/186
web
-
gist.github.com
/Kr0emer/02370d18328c28b5dd7f9ac880d22a91
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-2739
advisory
-
github.com
/indutny/bn.js/issues/316#issuecomment-3924217358
web
-
github.com
/indutny/bn.js
package
-
github.com
/indutny/bn.js/releases/tag/v5.2.3
web
Sources
- CVE List CVE-2026-2739
- GitHub Advisory GHSA-378v-28hj-76wf
- NVD CVE-2026-2739
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.