{"answers":{"affected":"4 open source packages ship an affected version, including bn.js.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-2739 exists.","fix":"Upgrade bn.js to a fixed version for your release line: 4.12.3 or 5.2.3.","what":"CVE-2026-2739 is a medium-severity denial of service vulnerability in bn.js, published on 20 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-2739 and fix it if it is affected.\n\nWhat it is: CVE-2026-2739 is a medium-severity denial of service vulnerability in bn.js, published on 20 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-2739 exists.\n\nAffected packages and fixed versions:\n- bn.js (npm): affected all versions; fixed in 4.12.3\n- bn.js (npm): affected all versions; fixed in 4.12.3\n- bn.js (npm): affected from 5.0.0; fixed in 5.2.3\n- bn.js (npm): affected from 5.0.0; fixed in 5.2.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-2739/ (Markdown: https://insights.sbomify.com/CVE-2026-2739/index.md)","id":"CVE-2026-2739","markdown":"https://insights.sbomify.com/CVE-2026-2739/index.md","name":"CVE-2026-2739","record":{"aliases":["AZL-78290","CLEANSTART-2026-JE33645","CLEANSTART-2026-ZJ10074","CLSA-2026-1779065199","CLSA-2026-1779065201","CLSA-2026-1782176259","CLSA-2026-1782176267","CLSA-2026-1789159797","CLSA-2026-1790541906","CLSA-2026-1791282392","CLSA-2026-1792488566","CLSA-2026-1792508499","DEBIAN-CVE-2026-2739","ECHO-e0f8-4252-e29c","GHSA-378v-28hj-76wf","MINI-24jm-qj94-5jg7","MINI-3hfx-5v9j-9jx8","MINI-768g-vgm4-7vmx","MINI-c8mh-fq3h-wgw5","MINI-f2jm-qmmr-27hg","MINI-f5x2-cx6p-f78h","MINI-gjg2-jj4q-hj5v","MINI-gjjr-5pjx-c2gh","MINI-jjf2-6gm8-f62f","MINI-m75f-388c-gh28","MINI-q66m-mmgv-m35m","MINI-r4hh-4m2j-w4wr","MINI-r83c-c964-p8mf","MINI-v877-q67q-5938","MINI-wpg6-pfhg-5xqq","MINI-wr45-77j6-pfc9","ROOT-APP-NPM-CVE-2026-2739","UBUNTU-CVE-2026-2739"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript big number library","requires_auth":"none","summary":"Calling maskn(0) on a BN instance corrupts internal state, causing infinite loops in methods like toString and divmod, leading to process hangs.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"bn.js affected by an infinite loop","id":"CVE-2026-2739","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":4,"n_references":6,"next":{"headline":"Remote Code Execution","id":"CVE-2026-2740"},"packages":[{"ecosystem":"npm","fixed":["4.12.3"],"introduced":["0"],"last_affected":[],"package":"bn.js","purl":null,"source":"GHSA-378v-28hj-76wf"},{"ecosystem":"npm","fixed":["4.12.3"],"introduced":["0"],"last_affected":[],"package":"bn.js","purl":"pkg:npm/bn.js","source":"GHSA-378v-28hj-76wf"},{"ecosystem":"npm","fixed":["5.2.3"],"introduced":["5.0.0"],"last_affected":[],"package":"bn.js","purl":null,"source":"GHSA-378v-28hj-76wf"},{"ecosystem":"npm","fixed":["5.2.3"],"introduced":["5.0.0"],"last_affected":[],"package":"bn.js","purl":"pkg:npm/bn.js","source":"GHSA-378v-28hj-76wf"}],"prev":{"headline":"Memory corruption in ovpn-dco-win","id":"CVE-2026-2738"},"products":["bn.js"],"published":"2026-02-20","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-20","vendors":["n/a"]},"summary":"Calling maskn(0) on a BN instance corrupts internal state, causing infinite loops in methods like toString and divmod, leading to process hangs.","url":"https://insights.sbomify.com/CVE-2026-2739/"}