GHSA-378v-28hj-76wf

    Dashboard / Vulnerabilities / GHSA-378v-28hj-76wf

    GHSA-378v-28hj-76wf

    Published: 20 Feb 2026Last Modified: 10 Sept 2026
    Aliases:

    Summary: bn.js affected by an infinite loop

    Details: This affects versions of the package bn.js before 4.12.3 and 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.

    Affected packages

    Package

    Name: bn.js

    Purl: pkg:npm/bn.js

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -4.12.3

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-378v-28hj-76wf | CVE-DB