Skip to main content
← All vulnerabilities
CVE-2026-2739GHSA-378V-28HJ-76WF

This affects versions of the package bn.js before 5.2.3.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.2.3, 4.12.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a bn.js

    fixed in 5.2.3

  • bn.jsnpm

    fixed in 4.12.3

  • bn.jsnpm

    From 5.0.0 · fixed in 5.2.3

References 6

security.snyk.io

GitHub · indutny/bn.js

gist.github.com