CVE-2026-107846: Vulnerability in Bitcoinjs-lib
Critical. bitcoinjs-lib is a JavaScript Bitcoin library for Node.js and browsers. From 2.3.0 until 5.2.1, 6.1.8, and 7.0.2, fastMerkleRoot pads odd Merkle-tree levels by hashing the final node with itself but does not report adjacent duplicate hashes. The affected block-root verifier was introduced as Block.checkMerkleRoot() alongside Block.calculateMerkleRoot(), while later versions expose validation through...
npm, CWE-354
- Exploitation
- None confirmed
- Severity
- 9.3 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-8vv3-6qpc-gpw6
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:N/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Weakness
- CWE-354
- Published
- 4 Nov 2026
- Last change
- 12 Nov 2026
- Ecosystem
- npm
Affected products
Affected versions and the first fixed release
- Bitcoinjs-lib From 2.3.0, before 5.2.1; From 6.0.0, before 6.1.8; From 7.0.0-rc.0, before 7.0.2; Versions >= 2.3.0, < 5.2.1, >= 6.0.0, < 6.1.8, >= 7.0.0-rc.0, < 7.0.2. Fixed in 5.2.1, 6.1.8, 7.0.2
Affected packages
Vulnerable version ranges and fixed releases
- bitcoinjs-lib npm, Affected from 2.3.0 before 5.2.1. Fixed in 5.2.1
Advisories
Vendor and security advisories
Patches and fixes
Updates, commits and release notes
- github.com/bitcoinjs/bitcoinjs-lib/commit/009f165edfbf925cad8964b2dce478d18dd19449
- github.com/bitcoinjs/bitcoinjs-lib/commit/b79c7714c0687473dc6e25c69fc5fc597302c7a0
- github.com/bitcoinjs/bitcoinjs-lib/commit/f3434d1e4bb5e0784fe769c4cd08a243576232a1
Related
- Bitcoinjs-lib vulnerabilities Recent advisories, watch this product