---
title: "CVE-2026-107846: bitcoinjs-lib: Undetected merkle node duplication in block root computation validates a forged transaction list"
url: https://erroneo.us/security/cve/CVE-2026-107846/
description: "CVE-2026-107846 (bitcoinjs-lib (npm)): 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…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-11-04
date_modified: 2026-11-11
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-107846"
kev: false
cvss: 9.3
epss: 0.00252
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-107846: bitcoinjs-lib: Undetected merkle node duplication in block root computation validates a forged transaction list

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.3% , percentile 17: FIRST’s model estimates a 0.3% chance of exploitation activity in the next 30 days, higher than 17% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes bitcoinjs-lib (npm) >= 2.3.0, < 5.2.1, fixed in 5.2.1 ; bitcoinjs-lib (npm) >= 6.0.0, < 6.1.8, fixed in 6.1.8 ; bitcoinjs-lib (npm) >= 7.0.0-rc.0, < 7.0.2, fixed in 7.0.2 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- npm `bitcoinjs-lib` >= 2.3.0, < 5.2.1 → fixed: 5.2.1
- npm `bitcoinjs-lib` >= 6.0.0, < 6.1.8 → fixed: 6.1.8
- npm `bitcoinjs-lib` >= 7.0.0-rc.0, < 7.0.2 → fixed: 7.0.2

## Affected products (CVE record)

- bitcoinjs bitcoinjs-lib: >= 2.3.0, < 5.2.1, >= 6.0.0, < 6.1.8, >= 7.0.0-rc.0, < 7.0.2

## Severity

- GitHub_M CVSS 4.0: 9.3 `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`
- GitHub CVSS 4.0: 9.3 `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`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact partial .
- FIRST EPSS (model of 2026-11-21): 0.25% probability of exploitation activity in the next 30 days; percentile 17.

## Sources

- [GitHub Advisory GHSA-8vv3-6qpc-gpw6](https://github.com/advisories/GHSA-8vv3-6qpc-gpw6)
- [CVE.org record CVE-2026-107846](https://www.cve.org/CVERecord?id=CVE-2026-107846)
- [NVD entry CVE-2026-107846](https://nvd.nist.gov/vuln/detail/CVE-2026-107846)
- [github.com](https://github.com/bitcoinjs/bitcoinjs-lib/security/advisories/GHSA-8vv3-6qpc-gpw6)
- [github.com](https://github.com/bitcoinjs/bitcoinjs-lib/commit/009f165edfbf925cad8964b2dce478d18dd19449)
- [github.com](https://github.com/bitcoinjs/bitcoinjs-lib/commit/b79c7714c0687473dc6e25c69fc5fc597302c7a0)
- [github.com](https://github.com/bitcoinjs/bitcoinjs-lib/commit/f3434d1e4bb5e0784fe769c4cd08a243576232a1)

---
Source page: https://erroneo.us/security/cve/CVE-2026-107846/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
