cve.bz

CVE-2026-107846 bitcoinjs bitcoinjs-lib

9.3 criticalEPSS 0.3%Fix available

Critical (9.3) in bitcoinjs bitcoinjs-lib. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in bitcoinjs-lib 5.2.1, 6.1.8, 7.0.2.

On this page
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.

Severity

CVSS 4.0

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
EPSS
0.3% (unchanged from 0.2% a week ago) estimated probability of exploitation activity in the next 30 days; 17th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-11-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-354 Improper Validation of Integrity Check Value
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • bitcoinjs-lib (npm): fixed in 5.2.1, 6.1.8, 7.0.2

Ask an AI about this CVE

Show the promptExplain CVE-2026-107846 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-107846?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-107846?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-107846 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

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

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8vv3-6qpc-gpw6npmbitcoinjs-lib>=2.3.0 <5.2.15.2.1
GHSA-8vv3-6qpc-gpw6npmbitcoinjs-lib>=6.0.0 <6.1.86.1.8
GHSA-8vv3-6qpc-gpw6npmbitcoinjs-lib>=7.0.0-rc.0 <7.0.27.0.2

Attack patterns (CAPEC)

  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-145 Checksum Spoofing Severity: Medium
  • CAPEC-463 Padding Oracle Crypto Attack Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON