← Back to CVEs
CVE-2026-2739
MEDIUM5.3
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.
CVE Details
CVSS v3.1 Score5.3
SeverityMEDIUM
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
Published2/20/2026
Last Modified2/20/2026
Sourcenvd
Honeypot Sightings0
Weaknesses (CWE)
CWE-835
References
https://gist.github.com/Kr0emer/02370d18328c28b5dd7f9ac880d22a91(report@snyk.io)
https://github.com/indutny/bn.js/issues/186(report@snyk.io)
https://github.com/indutny/bn.js/issues/316(report@snyk.io)
https://github.com/indutny/bn.js/pull/317(report@snyk.io)
https://security.snyk.io/vuln/SNYK-JS-BNJS-15274301(report@snyk.io)
IOC Correlations
No correlations recorded
This product uses data from the NVD API but is not endorsed or certified by the NVD.