Read the docs
TI-2026-02345 Aliases CVE-2026-2739GHSA-378v-28hj-76wf

Infinite loop in bn.js

Priority HIGH 70CWE-835Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · Low
Fix status
Partial Red Hat: 16 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-835.

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00531 45th percentileScored 2026-11-07
Fix Partial bn.js: 5.2.3bn.js (npm): 4.12.3, 5.2.3Red Hat: 16 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
—bn.jsbefore 5.2.35.2.3Patch availableCNA
—bn.js (npm)before 4.12.34.12.3Patch availableGHSA-378v-28hj-76wf
—bn.js (npm)5.0.0 to before 5.2.35.2.3Patch availableGHSA-378v-28hj-76wf
  • bn.js Vendor— Affected before 5.2.3 Fixed in 5.2.3 Patch available CNA
  • bn.js (npm) Vendor— Affected before 4.12.3 Fixed in 4.12.3 Patch available GHSA-378v-28hj-76wf
  • bn.js (npm) Vendor— Affected 5.0.0 to before 5.2.3 Fixed in 5.2.3 Patch available GHSA-378v-28hj-76wf

Remediation

  • Fix · CNA bn.js Fixed in 5.2.3
  • Fix · GHSA-378v-28hj-76wf bn.js (npm) Fixed in 4.12.3 Advisory →
  • Fix · GHSA-378v-28hj-76wf bn.js (npm) Fixed in 5.2.3 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Logging Subsystem for Red Hat OpenShiftAffectedNo fix planned: Out of support scope
OpenShift PipelinesAffectedNo fix yet: Fix deferred
OpenShift Service Mesh 2AffectedNo fix planned: Out of support scope
OpenShift Service Mesh 3AffectedNo fix yet: Fix deferred
Red Hat 3scale API Management Platform 2AffectedNo fix planned: Out of support scope
Red Hat Developer Hub 1AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 8AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 9AffectedNo fix yet: Fix deferred
Red Hat Fuse 7AffectedNo fix planned: Out of support scope
Red Hat OpenShift Container Platform 4AffectedNo fix yet: Fix deferred
Red Hat OpenShift Dev SpacesAffectedNo fix yet: Fix deferred
Red Hat Process Automation 7AffectedNo fix planned: Out of support scope
Red Hat Quay 3AffectedNo fix yet: Fix deferred
Red Hat build of Apicurio Registry 2AffectedNo fix yet: Fix deferred
streams for Apache Kafka 2AffectedNo fix yet: Fix deferred
streams for Apache Kafka 3AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-2739
  2. 2026-10-03 Alias added: GHSA-378v-28hj-76wf
  3. 2026-10-18 EPSS moved to the 50th–90th percentile
  4. 2026-10-25 EPSS moved to the below the 50th percentile
  5. 2026-10-27 Affected versions changed · Red Hat

References

Sources