Skip to content

deps(stack): bump bsv-rs from 0.8.15 to 0.8.16 in the bsv-stack group - #76

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/cargo/bsv-stack-b1f6aaa361
Nov 29, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
dependabot/cargo/bsv-stack-b1f6aaa361

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 29, 2026

Copy link
Copy Markdown
Contributor

Bumps the bsv-stack group with 1 update: bsv-rs.

Updates bsv-rs from 0.8.15 to 0.8.16

Release notes

Sourced from bsv-rs's releases.

bsv-rs 0.8.16

A security patch for the stable line: the follow-up to the 64-byte merkle-proof fix (0.8.15). It closes a residue the first patch left and reaches the one stable door the first patch did not. No public type, signature, default or error-class is removed or changed — a drop-in for 0.8.15 — and two public items are added (BeefTx::proof_vouches, now public, and BeefTx::bump_index_as_written). It is also carried to the 0.9 line, and a drop-in prerelease follows this release.

The advisory is published once this release and its drop-in prerelease are both served by crates.io; a CVE is requested for it. The first patch's published advisory, GHSA-jjhc-7hvh-c3hm, is given a dated, append-only correction at the same time (its structured affected range is extended through 0.8.15 with a stable patched version of 0.8.16).

  • GHSA-3h6g-mj4h-rw57 (medium) — the first 64-byte proof patch set a 64-byte entry aside by skipping its bump block, including the consistency checks; a 64-byte entry whose named bump did not carry it (or whose index named no bump) was then no longer refused at the streaming reader (and the in-memory verify on the stable line), and the per-entry proof words still reported a proof for a 64-byte entry the verifier had set aside. 0.8.16 judges the claim's consistency before the length rule at every proof door, makes the proof words answer as for an entry with no proof, links such an entry's inputs as unproven, and makes BeefTx::proof_vouches public.
  • GHSA-jjhc-7hvh-c3hm (correction) — the first patch's page said 0.8.15 closed the whole class; on the stable line the identity lookup-evidence walk was not reached until 0.8.16, and the first patched versions carried the residue above. A dated, append-only correction records this and points to GHSA-3h6g-mj4h-rw57.

Known. For a 64-byte entry whose path carries it, a bundle this version writes is refused by this version's own reader for want of the entry's source; the writer is brought under the same rule in the next release.

Upgrade: bsv-rs = "0.8.16". See the advisories for per-fix detail and any "if you cannot upgrade" step.

Changelog

Sourced from bsv-rs's changelog.

[0.8.16] - 2026-11-29

A follow-up security patch closing the residue of 0.8.15's 64-byte merkle-ambiguity fix (GHSA-jjhc-7hvh-c3hm): the first patch skipped the proof claim's consistency check for a 64-byte entry, so a false claim with verifying inputs was no longer refused at the whole-bundle and streaming verifiers; the public words describing an entry's proof still reported a proof for an entry the verifier set aside; the BEEF link door (from_beef and its siblings) attached a merkle path to a carrying 64-byte entry and dropped its proven source, so a caller reading the linked Transaction::merkle_path took "proven" for an entry the crate set aside; and the identity lookup-evidence walk — which 0.8.15 did not reach — still took a 64-byte ancestor named by a BUMP as confirmed.

Breaking since 0.8.15. None. Two public items are added — BeefTx::proof_vouches (the predicate was pub(crate)) and BeefTx::bump_index_as_written — and nothing is removed or changed; a 0.8.15 pin moves to this release on cargo update. cargo-semver-checks reports no breaking change.

Behaviour since 0.8.15. Four things an untrusted bundle could make wrong are closed:

  • a 64-byte entry whose named proof does not carry it at its lowest level, or names no bump, is refused again (TxidNotInBump/BumpIndexNamesNoBump) — the consistency of the claim is judged before the ambiguous-length rule, at the whole-bundle verify (verify_valid/verify_structure) and the streaming reader, through one shared helper;
  • the public proof words answer through the rule: for a set-aside entry BeefTx::has_proof, BeefTx::bump_index, Beef::find_bump, the decoder's Element::Tx { bump_index } each answer as for an entry with no proof;
  • the BEEF link door — Transaction::from_beef, from_atomic_beef, Beef::find_atomic_transaction and their siblings — attaches no merkle path to a 64-byte entry and links that entry's inputs as it does for an entry with no proof, so after linking Transaction::merkle_path is Some only where the proof vouches and the proven source is no longer dropped;
  • the identity lookup-evidence walk (behind the identity feature) no longer stops at a 64-byte ancestor a BUMP names: it requires that ancestor's parents like any unconfirmed transaction's. 0.8.15 patched the SPV/BEEF proof doors but not this walk.

Migration. None for an honest caller (an honest payment is never 64 bytes). A caller that reads an entry's own proof words — or the linked Transaction::merkle_path — to decide "proven" is now correct; the one predicate to ask is BeefTx::proof_vouches, and the index exactly as the bytes carry it is BeefTx::bump_index_as_written.

For dependents. A wallet or overlay intake that books "confirmed / already mined / do not broadcast" from an entry's own proof words (has_proof, bump_index, find_bump, the decoder element) or from the linked Transaction::merkle_path is right with no change, where 0.8.15 could book a 64-byte entry it treated as unproven as confirmed and never broadcast it. A consumer that walks a bundle or the stream itself and judges an entry's claim reads bump_index_as_written() for the index exactly as the bytes carry it (for an entry of the ambiguous length bump_index() answers none whatever the entry claims).

Security: the 64-byte merkle-ambiguity residue — the false claim is refused again, the proof words and the link door answer through the rule, and the identity evidence walk is reached (GHSA-jjhc-7hvh-c3hm residue)

  • What was reachable. 0.8.15 set a 64-byte entry aside (CVE-2017-12842) by skipping the whole bump block for it — including the consistency checks — so the proof doors no longer judged whether the entry's named bump carried it. Four things followed. First, a 64-byte entry whose bump did NOT carry its txid, or whose index named no bump, was no longer refused at Beef::verify_valid/verify_structure or the streaming reader: it was judged as an unproven transaction, and with its inputs present and verifying it reached a valid verdict, where 0.8.14 and both reference SDKs refuse the false claim. Second, the public words that describe an entry's proof still reported a proof for an entry the verifier had set aside: BeefTx::has_proof returned true, BeefTx::bump_index returned the index, Beef::find_bump returned the bump, the decoder's Element::Tx { bump_index } carried the index — while the one function that knew better (proof_vouches) was pub(crate). Third, the BEEF link door (Beef::add_input_proof, reached through Transaction::from_beef, from_atomic_beef, Beef::find_atomic_transaction and their limited/budget/subject siblings) attached the BEEF's BUMP to a carrying 64-byte entry and did not descend its inputs, so the returned Transaction::merkle_path was set and the proven source was dropped: a caller reading that raw field after a valid verdict took "proven" for an entry the crate had set aside. An embedder whose intake reads an entry's own proof words, or the linked Transaction::merkle_path, rather than the verify verdict, to decide "confirmed / do not broadcast" could book a 64-byte entry the verifier treated as unproven as confirmed and never broadcast it (CWE-345, an integrity record, not a payment: no ordinary payment is 64 bytes — a 1-in-1-out transaction of 64 bytes has a 4-byte scriptPubKey, no standard template, and an empty scriptSig that carries no signature). Fourth, the identity lookup-evidence walk (src/identity/evidence.rs, behind the identity feature) stopped requiring an entry's parents as soon as a BUMP of the evidence BEEF named its txid, with no 64-byte guard — so a forged 64-byte ancestor named by a BUMP was taken as confirmed there; 0.8.15's fix reached the SPV/BEEF proof doors but not this walk (the advisory's "whole class closed on the stable line" was too strong for this door). Reachable on the caller's default path with no feature flag (the proof doors and the link door) and behind identity (the evidence walk).
  • What changed. The claim's consistency is judged BEFORE the ambiguous-length rule at every proof door, through one shared helper transaction::proof_ambiguity::classify_proof_claim (an arch test asserts the bump-index doors call it): a 64-byte entry whose named bump does not carry its txid, or names no bump, is refused with the existing Kind::TxidNotInBump/BumpIndexNamesNoBump (and Reason:: on the stream), whatever the length, and only a consistent claim of the colliding length is set aside — the entry judged as unproven, as 0.8.15 intended. The transaction door (Transaction::verify) refuses a 64-byte transaction whose own merkle path does not bind its txid in the MerklePath::compute_root words every version used, before setting it aside. The public words answer through the rule: BeefTx::has_proof and BeefTx::bump_index return as for an entry with no proof for a set-aside entry, Beef::find_bump returns None, the decoder's Element::Tx { bump_index } answers None (the crate's own verifiers fold the as-written index through a private next_raw); a valid verdict returns every proof's root, exactly as every published version does, and the streaming cursor's bytes are unchanged. The BEEF link door reads the same rule: Beef::add_input_proof attaches no merkle path to a 64-byte entry and links its inputs as an unproven entry's, so after from_beef (and from_atomic_beef, find_atomic_transaction and their siblings) the linked Transaction::merkle_path is Some only where the proof vouches and the proven source is linked rather than dropped; this crate declines the merkle path for the colliding length alone, as it does at the verify doors. BeefTx::proof_vouches is made public — the one predicate for "proven" — and BeefTx::bump_index_as_written exposes the index exactly as the bytes carry it, so the writers are unchanged and a round trip of a bundle's bytes is identical. The identity lookup-evidence walk now reads the shared rule: a 64-byte entry a BUMP names is judged as unconfirmed there too (find_bump returns None for it, and the walk's own && !is_ambiguous_merkle_leaf(...) guard — the one the 0.9 prerelease carried — is added), its parents required.
  • Pinned by. tests/proof_sixty_four_byte_false_claim_witness.rs (built by the crate's own codec and a mock tracker; RED on 0.8.15): a 64-byte entry whose named bump does not carry it, or names no bump, is refused at verify_valid, verify_structure, the streaming reader and Transaction::verify; the public proof words of a set-aside entry answer as for an entry with no proof; a valid verdict (in-memory and streaming) returns every proof's root, and a bundle whose set-aside entry names a proof the chain does not carry is refused as every published version refuses it; the decoder element hides the index; a bundle with a set-aside entry round-trips identically. tests/proof_sixty_four_byte_link_witness.rs (RED on 0.8.15) pins the link door: a linked 64-byte subject and a depth-two ancestor carry no path and their proven source is linked, a walk of the linked tree yields no 64-byte entry with a path, the stub of a repeat-spent 64-byte parent carries no path, and the writer carries no index for a linked 64-byte entry and writes its source along. tests/proof_sixty_four_byte_predicate_witness.rs pins the predicate and bump_index_as_written, and tests/arch_proof_doors_classify.rs the shared helper, the link-door guard, and a counted allowlist over src/ of every site that assigns a path from a bundle or reads the as-written index (so a new such door fails until it is named). The identity evidence walk's 64-byte guard is pinned by that module's own tests. The honest cell — a consistent 64-byte entry whose input source is present verifies as unproven — stays as 0.8.15 shipped it.
  • Migration. See the version summary. No honest answer moves; a 65-byte transaction and every honest bundle are unchanged.
  • Notes: cross-SDK parity. Both references refuse the false claim (TS #verifyBumpIndexLeaves returns false → verifyValid is invalid; Go verifyValid returns (false, nil)), and both return every proof's root for a valid bundle, as this crate does. The rule for an entry of the length that collides with a merkle inner node is this crate's at the SPV/verifier layer, where such a transaction is valid at consensus and a merkle proof has no committed transaction count to bind its depth. No row of the divergence list moves.
Commits
  • 6298954 0.8.16: a security patch on the stable line (1 advisory)
  • af89ed9 security: refuse a 64-byte entry's false proof claim again and make the proof...
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the bsv-stack group with 1 update: [bsv-rs](https://github.com/Calhooon/bsv-rs).


Updates `bsv-rs` from 0.8.15 to 0.8.16
- [Release notes](https://github.com/Calhooon/bsv-rs/releases)
- [Changelog](https://github.com/Calhooon/bsv-rs/blob/main/CHANGELOG.md)
- [Commits](Calhooon/bsv-rs@v0.8.15...v0.8.16)

---
updated-dependencies:
- dependency-name: bsv-rs
  dependency-version: 0.8.16
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: bsv-stack
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies, stack-line. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@github-actions
github-actions Bot enabled auto-merge (rebase) November 29, 2026 18:04
@github-actions

Copy link
Copy Markdown

Auto-merge (rebase) is armed: this PR merges itself when the required checks are green on a current branch (bsv-stack-lean #182). A merge to main deploys nothing.

@github-actions
github-actions Bot merged commit a390014 into main Nov 29, 2026
12 checks passed
@dependabot
dependabot Bot deleted the dependabot/cargo/bsv-stack-b1f6aaa361 branch November 29, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants