CVE-2026-107846
Critical 9.3No known exploitationFix availablebitcoinjs-lib: Undetected merkle node duplication in block root computation validates a forged transaction list
Vendor advisory: GHSA-8vv3-6qpc-gpw6
Record last updated
CVSS score
Critical on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
No EPSS score available
CISA remediation deadline
Not in the KEV catalog
Description
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 checkTxRoots() and __checkMerkleRoot; these validation paths can accept a recomputed root without checking for mutation. A peer can append duplicate transactions so a different transaction list retains the original Merkle root, block header, proof of work, and block identifier. Consumers that rely on block-root validation, including explorers, exchange indexers, or SPV clients, can process a duplicated transaction twice or blacklist the shared block hash and reject the honest block. This issue is fixed in versions 5.2.1, 6.1.8, and 7.0.2.
Weakness: CWE-354
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| bitcoinjs | bitcoinjs-lib | >= 2.3.0, < 5.2.1 | Not documented | CVE Program |
| bitcoinjs | bitcoinjs-lib | >= 6.0.0, < 6.1.8 | Not documented | CVE Program |
| bitcoinjs | bitcoinjs-lib | >= 7.0.0-rc.0, < 7.0.2 | Not documented | CVE Program |
| npm | bitcoinjs-lib | from 2.3.0 before 5.2.1 | 5.2.1 | GitHub Advisory Database |
| npm | bitcoinjs-lib | from 6.0.0 before 6.1.8 | 6.1.8 | GitHub Advisory Database |
| npm | bitcoinjs-lib | from 7.0.0-rc.0 before 7.0.2 | 7.0.2 | GitHub Advisory Database |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
Patch
Fix documented by GitHub Advisory Database
Vendor guidance and references
- GitHub Advisory GHSA-8vv3-6qpc-gpw6 (opens in a new tab)github-advisory
- https://github.com/bitcoinjs/bitcoinjs-lib/commit/009f165edfbf925cad8964b2dce478d18dd19449 (opens in a new tab)x_refsource_misc
- https://github.com/bitcoinjs/bitcoinjs-lib/commit/b79c7714c0687473dc6e25c69fc5fc597302c7a0 (opens in a new tab)x_refsource_misc
- https://github.com/bitcoinjs/bitcoinjs-lib/commit/f3434d1e4bb5e0784fe769c4cd08a243576232a1 (opens in a new tab)x_refsource_misc
- https://github.com/bitcoinjs/bitcoinjs-lib/security/advisories/GHSA-8vv3-6qpc-gpw6 (opens in a new tab)x_refsource_confirm