sadrobot

← Back to the monthly list

CVE-2026-107846 bitcoinjs · bitcoinjs-lib

9.3 Critical

AI summary

bitcoinjs-lib from 2.3.0 until 5.2.1, 6.1.8 and 7.0.2 does not detect duplicate transactions during Merkle root validation, letting a remote unauthenticated peer supply a mutated transaction list with the same block header and identifier. Explorers, exchange indexers or SPV clients may process a transaction twice or reject the honest block. Critical (CVSS 9.3); upgrade to 5.2.1, 6.1.8 or 7.0.2.

Official 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.

Published
2026-11-04 19:17 UTC
Modified
2026-11-12 20:04 UTC
CVSS
9.3 Critical 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
EPSS
0.26% (percentile 11)
ENISA EUVD
EUVD-2026-117051
CISA SSVC
Exploitation: poc · Automatable: yes · Technical impact: partial
CWE
CWE-354

CVSS vector

Attack vector
network
Attack complexity
low
Attack requirements
none
Privileges required
none
User interaction
none
Confidentiality
low
Integrity
high
Availability
low

References