GHSA-j8hr-pjhm-6h27: Transaction readers accept trailing bytes, so a parsed transaction can carry another transaction id
Published 2026-11-10 · Updated 2026-11-12 · Also known as RUSTSEC-2026-0498, RUSTSEC-2026-0500
Summary
The bsv-rs crate fails to enforce strict parsing for transaction readers, allowing trailing bytes to be processed as valid transactions. Engineering teams utilizing the affected versions should update to the patched releases to ensure transaction integrity.
Who is affected
Affected deployments are those using Beef::merge_raw_tx or BeefTx::from_raw_tx to process raw transaction bytes. If an application passes unverified bytes to these functions, the library may incorrectly validate malformed entries or misidentify trailing bytes as valid transaction IDs, potentially impacting security verdicts and parent verification.
Exploitability
The vulnerability is rated with a CVSS 3.1 base score of 5.3 (Medium), indicating a network-accessible flaw that requires low attack complexity but results in limited integrity impact. There is currently no EPSS data available and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade crates.io/bsv-rs to version 0.8.5 or higher.
- Upgrade crates.io/bsv-rs to version 0.9.0-beta.7.0 or higher.
- If upgrading is not possible, ensure raw bytes are validated as exactly one transaction before passing them to merge_raw_tx or BeefTx::from_raw_tx.
How to check your project
- Inspect Cargo.toml or Cargo.lock files to check if bsv-rs is present within the vulnerable ranges: 0.0.0-0 to <0.8.5, or 0.9.0-beta.1 to <0.9.0-beta.7.0.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | bsv-rs |
>= 0.0.0-0, < 0.8.5 | 0.8.5 | cargo update -p bsv-rs --precise 0.8.5 |
| crates.io | bsv-rs |
>= 0.9.0-beta.1, < 0.9.0-beta.7.0 | 0.9.0-beta.7.0 | cargo update -p bsv-rs --precise 0.9.0-beta.7.0 |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | Low |
| Availability | None |
FAQ
Are all transaction parsing methods affected?
No. The wire readers such as Beef::from_binary, verify_stream, Transaction::from_beef, and from_atomic_beef are not affected by this flaw.
What is the primary risk of this vulnerability?
The risk is that invalid or malformed transaction data could be incorrectly treated as valid, potentially leading to incorrect validation verdicts or the acceptance of spoofed transaction IDs.
Is this vulnerability being actively exploited in the wild?
No. This vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
Original advisory description
References
- PACKAGE https://crates.io/crates/bsv-rs
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0498.html
- WEB https://github.com/Calhooon/bsv-rs/blob/v0.8.5/CHANGELOG.md
- REPORT https://github.com/Calhooon/bsv-rs/issues/840
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0500.html
- WEB https://github.com/Calhooon/bsv-rs/pull/852
Source records: RUSTSEC-2026-0498, RUSTSEC-2026-0500 (OSV.dev).